rcutorture: build initrd for rcutorture with nolibc
This reduces the size of init from ~600KB to ~1KB. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
16d4b2bd79
commit
28ef4c3753
@ -64,7 +64,7 @@ ___EOF___
|
|||||||
# build using nolibc on supported archs (smaller executable) and fall
|
# build using nolibc on supported archs (smaller executable) and fall
|
||||||
# back to regular glibc on other ones.
|
# back to regular glibc on other ones.
|
||||||
if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
|
if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
|
||||||
"||__ARM_EABI__||__aarch64__\nyes\n#endif" \
|
"||__ARM_EABI__||__aarch64__||__s390x__\nyes\n#endif" \
|
||||||
| ${CROSS_COMPILE}gcc -E -nostdlib -xc - \
|
| ${CROSS_COMPILE}gcc -E -nostdlib -xc - \
|
||||||
| grep -q '^yes'; then
|
| grep -q '^yes'; then
|
||||||
# architecture supported by nolibc
|
# architecture supported by nolibc
|
||||||
|
Loading…
Reference in New Issue
Block a user