줄바꿈을 LF로 통일
서버에서 바로 빌드하고 고칠 수 있게 저장소 줄바꿈을 LF로 맞췄습니다. CRLF로 들어가 있던 sh 빌드 스크립트도 이제 리눅스에서 그대로 돌아갑니다. 내용은 바뀌지 않았습니다.
This commit is contained in:
1 parent
40615838ac
commit
2d48091205
623 files changed
+501372
-501365
No files matched your search
+14
-14
@@ -1,14 +1,14 @@
|
||||
#!/bin/sh
|
||||
# Build the core with the translator for the Unicorn test bed (m3main.c, memory as on the Paradise:
|
||||
# test/m3.ld). Objects one by one with the device's optimisation, so the linker script can place them.
|
||||
# sh test/build_m3.sh out.elf [flags], e.g. -DT18_JIT -DT18_JC_LINKED -DT18_PRAM_WR -DJH_BITS=8 -DJT_BITS=8 -DJ_HOT=8
|
||||
O=$1; shift
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
D=$(mktemp -d)
|
||||
CF="-mcpu=cortex-m3 -mthumb -DPARADISE -ffreestanding -nostdlib -ffunction-sections -fdata-sections -Wall -Wno-unused-function"
|
||||
for f in test/m3main.c src/core/t18cpu.c src/core/t18soc.c src/core/t18jit.c; do
|
||||
n=$(basename $f .c); OPT=${OPT_ALL:--Os}; [ "$n" = t18cpu ] && OPT=-O2
|
||||
arm-none-eabi-gcc $CF $OPT "$@" -c $f -o $D/$n.o || exit 1
|
||||
done
|
||||
arm-none-eabi-gcc $CF -Wl,--gc-sections -T ${LD:-test/m3.ld} $D/m3main.o $D/t18cpu.o $D/t18soc.o $D/t18jit.o -lgcc -o $O && arm-none-eabi-size -A $O | head -8
|
||||
rm -rf $D
|
||||
#!/bin/sh
|
||||
# Build the core with the translator for the Unicorn test bed (m3main.c, memory as on the Paradise:
|
||||
# test/m3.ld). Objects one by one with the device's optimisation, so the linker script can place them.
|
||||
# sh test/build_m3.sh out.elf [flags], e.g. -DT18_JIT -DT18_JC_LINKED -DT18_PRAM_WR -DJH_BITS=8 -DJT_BITS=8 -DJ_HOT=8
|
||||
O=$1; shift
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
D=$(mktemp -d)
|
||||
CF="-mcpu=cortex-m3 -mthumb -DPARADISE -ffreestanding -nostdlib -ffunction-sections -fdata-sections -Wall -Wno-unused-function"
|
||||
for f in test/m3main.c src/core/t18cpu.c src/core/t18soc.c src/core/t18jit.c; do
|
||||
n=$(basename $f .c); OPT=${OPT_ALL:--Os}; [ "$n" = t18cpu ] && OPT=-O2
|
||||
arm-none-eabi-gcc $CF $OPT "$@" -c $f -o $D/$n.o || exit 1
|
||||
done
|
||||
arm-none-eabi-gcc $CF -Wl,--gc-sections -T ${LD:-test/m3.ld} $D/m3main.o $D/t18cpu.o $D/t18soc.o $D/t18jit.o -lgcc -o $O && arm-none-eabi-size -A $O | head -8
|
||||
rm -rf $D
|
||||
Reference in new issue
Block a user