aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-09-06 10:26:07 -0700
committerPaul E. McKenney <paulmck@linux.ibm.com>2018-11-08 21:52:55 -0800
commit70e9f504774b35aacd7b43d873b51ec5260e58ad (patch)
tree510d6cdd3c6e0f2f82eb2e395546487261e42c53 /tools/testing/selftests/rcutorture/bin
parentrcutorture: Make initrd/init execute in userspace (diff)
downloadlinux-dev-70e9f504774b35aacd7b43d873b51ec5260e58ad.tar.xz
linux-dev-70e9f504774b35aacd7b43d873b51ec5260e58ad.zip
rcutorture: Add cross-compile capability to initrd.sh
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>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/mkinitrd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
index b48c504edfe1..70661457e3d6 100755
--- a/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
+++ b/tools/testing/selftests/rcutorture/bin/mkinitrd.sh
@@ -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"