]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
rcutorture: Add cross-compile capability to initrd.sh
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 6 Sep 2018 17:26:07 +0000 (10:26 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 9 Nov 2018 05:52:55 +0000 (21:52 -0800)
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>
tools/testing/selftests/rcutorture/bin/mkinitrd.sh

index b48c504edfe12de01a66abc13df5078892401e8e..70661457e3d64bc80be0c1708e0e40b9a5905dfb 100755 (executable)
@@ -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"