]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tools headers: Move the nolibc header from rcutorture to tools/include/nolibc/
authorWilly Tarreau <w@1wt.eu>
Sat, 29 Dec 2018 18:04:53 +0000 (19:04 +0100)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:37:13 +0000 (15:37 -0800)
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>
tools/include/nolibc/nolibc.h [moved from tools/testing/selftests/rcutorture/bin/nolibc.h with 100% similarity]
tools/testing/selftests/rcutorture/bin/mkinitrd.sh

index e79eb35c41e2b1ded26115b4d51996b06d78b824..83552bb007b4289590c64d91ad2a05bdd1753e4c 100755 (executable)
@@ -131,8 +131,8 @@ if echo -e "#if __x86_64__||__i386__||__i486__||__i586__||__i686__" \
    | grep -q '^yes'; then
        # architecture supported by nolibc
         ${CROSS_COMPILE}gcc -fno-asynchronous-unwind-tables -fno-ident \
-               -nostdlib -include ../bin/nolibc.h -lgcc -s -static -Os \
-               -o init init.c
+               -nostdlib -include ../../../../include/nolibc/nolibc.h \
+               -lgcc -s -static -Os -o init init.c
 else
        ${CROSS_COMPILE}gcc -s -static -Os -o init init.c
 fi