Mercurial > hg > Members > innparusu > xv6-rpi
comparison src/CMakeLists.txt @ 47:233a68a261fe
ifdef cbcxv6
author | mir3636 |
---|---|
date | Thu, 07 Mar 2019 19:42:27 +0900 |
parents | 5f19e9554c30 |
children |
comparison
equal
deleted
inserted
replaced
46:9647d79fe97e | 47:233a68a261fe |
---|---|
3 | 3 |
4 set(USE_CUDA,0) | 4 set(USE_CUDA,0) |
5 # -DUSE_CUDA | 5 # -DUSE_CUDA |
6 # add_definitions("-Wall -g -O") | 6 # add_definitions("-Wall -g -O") |
7 | 7 |
8 set(CMAKE_C_COMPILER $ENV{CBC_COMPILER}) | 8 if (APPLE) |
9 add_definitions("-Wall -g -arch arm -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 | 9 set(CMAKE_C_COMPILER $ENV{CBC_LANG_COMPILER}) |
10 -Wno-macro-redefined -Wno-gnu-designator -Wno-sometimes-uninitialized -Wno-tautological-compare | 10 add_definitions("-Wall -g -arch arm -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -Werror -I. -g -O0 |
11 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include | 11 -Wno-macro-redefined -Wno-gnu-designator -Wno-sometimes-uninitialized -Wno-tautological-compare |
12 -Wno-nullability-completeness -Wno-expansion-to-defined") | 12 -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include |
13 -Wno-nullability-completeness -Wno-expansion-to-defined") | |
14 else (APPLE) | |
15 set(CMAKE_C_COMPILER /mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi-gcc) | |
16 add_definitions("-B/mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi- | |
17 -DCBCXV6=1 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -g -O0") | |
18 endif (APPLE) | |
13 | 19 |
14 # -DCMAKE_BUILD_TYPE=Debug | 20 # -DCMAKE_BUILD_TYPE=Debug |
15 set(CMAKE_C_FLAGS_DEBUG "-O0") | 21 set(CMAKE_C_FLAGS_DEBUG "-O0") |
16 set(CMAKE_EXE_LINKER_FLAGS "-L. -arch armv7 -T kernel.ld -o kernel.elf ") | 22 set(CMAKE_EXE_LINKER_FLAGS "-L. -arch armv7 -T kernel.ld -o kernel.elf ") |
17 | 23 |
72 | 78 |
73 GearsCommand( | 79 GearsCommand( |
74 TARGET | 80 TARGET |
75 kernel | 81 kernel |
76 SOURCES | 82 SOURCES |
77 lib/string.c arm.c asm.S bio.c buddy.c console.c exec.c file.c fs.c log.c main.c memide.c pipe.c proc.c spinlock.c | 83 lib/string.c arm.c asm.S bio.c buddy.c console.cbc exec.c file.c fs.c log.c main.c memide.c pipe.c proc.c spinlock.c |
78 start.c swtch.S syscall.c sysfile.c sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c | 84 start.c swtch.S syscall.c sysfile.c sysproc.c trap_asm.S trap.c vm.c device/picirq.c device/timer.c device/uart.c |
79 entry-osx.S | 85 entry-osx.S |
80 ) | 86 ) |
81 | 87 |
82 | 88 |