Mercurial > hg > CbC > CbC_xv6
changeset 392:b7235d42396f
add triple on cflags
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Sep 2020 23:04:52 +0900 |
parents | 72c38f531ae2 |
children | 8c6ae8783321 |
files | src/gearsTools/pmake.pl |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gearsTools/pmake.pl Tue Sep 29 22:57:02 2020 +0900 +++ b/src/gearsTools/pmake.pl Tue Sep 29 23:04:52 2020 +0900 @@ -32,12 +32,12 @@ my $armdir = "/usr/local/Cellar/arm-none-eabi-gcc/9-2019-q4-major"; $objcopy = "$armdir/bin/arm-none-eabi-objcopy"; my $cbcmdir = "/usr/local/Cellar/cbc/llvm10"; - $cc = "$cbcmdir/bin/clang --target=armv6-linux-gnueabihf -I$xv6_src_dir/cbclang/arm"; + $cc = "$cbcmdir/bin/clang"; $asm = $cc; - $cflags = qq|-B$armdir/bin/arm-none-eabi- + $cflags = qq| --target=armv6-linux-gnueabihf -I$xv6_src_dir/../cbclang/arm -B$armdir/bin/arm-none-eabi- -DCBCXV6=1 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -g -O0|; $ld = "$armdir/bin/arm-none-eabi-ld"; - chomp($libgcc = `$cc --print-libgcc-file-name`); + chomp($libgcc = `$cc --target=armv6-linux-gnueabihf --print-libgcc-file-name`); # $cmake .= 3; $ldflags = " -L. -T kernel-cmake.ld"; $kernel_cflags = '-march=armv6 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -g -O0 -iquote ../ -c';