mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
tools headers: Move the nolibc header from rcutorture to tools/include/nolibc/
As suggested by Ingo, this header file might benefit other tools than just rcutorture. For now it's quite limited, but is easy to extend, so exposing it into tools/include/nolibc/ will make it much easier to adopt by other tools. The mkinitrd.sh script in rcutorture was updated to use this new location. Cc: Ingo Molnar <mingo@kernel.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Willy Tarreau <w@1wt.eu> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
This commit is contained in:
parent
cc72a50994
commit
30ca20517a
@ -131,8 +131,8 @@ if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
|
|||||||
| grep -q '^yes'; then
|
| grep -q '^yes'; then
|
||||||
# architecture supported by nolibc
|
# architecture supported by nolibc
|
||||||
${CROSS_COMPILE}gcc -fno-asynchronous-unwind-tables -fno-ident \
|
${CROSS_COMPILE}gcc -fno-asynchronous-unwind-tables -fno-ident \
|
||||||
-nostdlib -include ../bin/nolibc.h -lgcc -s -static -Os \
|
-nostdlib -include ../../../../include/nolibc/nolibc.h \
|
||||||
-o init init.c
|
-lgcc -s -static -Os -o init init.c
|
||||||
else
|
else
|
||||||
${CROSS_COMPILE}gcc -s -static -Os -o init init.c
|
${CROSS_COMPILE}gcc -s -static -Os -o init init.c
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user