Skip to content

Commit

Permalink
rcutorture: Add cross-compile capability to initrd.sh
Browse files Browse the repository at this point in the history
This adds the CROSS_COMPILE environment to the initrd.sh script's
gcc command to enable cross compilation.

Reported-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
  • Loading branch information
Paul E. McKenney authored and Paul E. McKenney committed Nov 9, 2018
1 parent 229ab0c commit 70e9f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/rcutorture/bin/mkinitrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int main(int argc, int argv[])
return 0;
}
___EOF___
cc -static -Os -o init init.c
${CROSS_COMPILE}gcc -static -Os -o init init.c
strip init
rm init.c
echo "Done creating a statically linked C-language initrd"
Expand Down

0 comments on commit 70e9f50

Please sign in to comment.