summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMariano Lopez <just.another.mariano@gmail.com>2019-04-09 00:44:15 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-11 21:12:48 +0100
commit677bacd446247d9a83401a516352b214d384dfd3 (patch)
tree2f95fadd41eee178d9a3afdf7ba502be8c485b48 /meta
parentdb9a0dd7849edcfa1ae4b56d0c991997b850e913 (diff)
downloadpoky-677bacd446247d9a83401a516352b214d384dfd3.tar.gz
busybox: Use PTEST binary directory
This will generate the symlinks in the ptest binary directory using the ptest class functionality instead of generating them manually. Because the ptest class uses update-alternatives to get the metadata for the symlinks it will respect the use of BUSYBOX_SPLIT_SUID automatically. [YOCTO #12597] (From OE-Core rev: a3923085d1cad7de7e644ff57d05c4a8955b5b00) Signed-off-by: Mariano Lopez <just.another.mariano@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/busybox/busybox.inc16
1 files changed, 2 insertions, 14 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index c9d25ff1ca..174ce5a8c0 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -347,24 +347,12 @@ do_install () {
347 fi 347 fi
348} 348}
349 349
350PTEST_BINDIR = "1"
351
350do_install_ptest () { 352do_install_ptest () {
351 cp -r ${B}/testsuite ${D}${PTEST_PATH}/ 353 cp -r ${B}/testsuite ${D}${PTEST_PATH}/
352 cp ${B}/.config ${D}${PTEST_PATH}/ 354 cp ${B}/.config ${D}${PTEST_PATH}/
353 ln -s /bin/busybox ${D}${PTEST_PATH}/busybox 355 ln -s /bin/busybox ${D}${PTEST_PATH}/busybox
354
355 mkdir ${D}${PTEST_PATH}/bin
356 if [ "${BUSYBOX_SPLIT_SUID}" = "1" ]; then
357 while read link; do
358 ln -s ${base_bindir}/busybox.suid ${D}${PTEST_PATH}/bin/$(basename $link)
359 done <${D}${sysconfdir}/busybox.links.suid
360 while read link; do
361 ln -s ${base_bindir}/busybox.nosuid ${D}${PTEST_PATH}/bin/$(basename $link)
362 done <${D}${sysconfdir}/busybox.links.nosuid
363 else
364 while read link; do
365 ln -s ${base_bindir}/busybox ${D}${PTEST_PATH}/bin/$(basename $link)
366 done <${D}${sysconfdir}/busybox.links
367 fi
368} 356}
369 357
370inherit update-alternatives 358inherit update-alternatives