diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-03-12 14:53:27 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-03-12 14:53:27 +0200 |
commit | 92e4b6d5522e53e6868b9b0c52b8e54d10bbf606 (patch) | |
tree | a23bd7054b6d0fdd9703e69035cd303d6b448e35 /i686 | |
parent | Move all tests next to the code they're testing (diff) | |
download | kernel-92e4b6d5522e53e6868b9b0c52b8e54d10bbf606.tar.xz |
Add unit tests for C drivers
Diffstat (limited to 'i686')
-rw-r--r-- | i686/toolchain.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/i686/toolchain.mk b/i686/toolchain.mk index 791966b..1205c28 100644 --- a/i686/toolchain.mk +++ b/i686/toolchain.mk @@ -6,8 +6,8 @@ ${ARCH}_AS := i686-elf-as ${ARCH}_CC := i686-elf-gcc ${ARCH}_CCID := $(shell ${${ARCH}_CC} --version | head -n1) -${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 \ - -mgeneral-regs-only \ +${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer \ + -D__ARCH__="${ARCH}" -ffreestanding -std=gnu11 -mgeneral-regs-only \ $(shell echo ${CONFIG_CFLAGS}) ${ARCH}_CXX := i686-elf-g++ @@ -32,9 +32,11 @@ HOST_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion \ ${CFLAGS} HOST_CXX := g++ HOST_CXXFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -g -Og \ - $(shell pkg-config --cflags --libs gtest gtest_main gmock) \ + $(shell pkg-config --cflags gtest gtest_main gmock) \ ${CXXFLAGS} +HOST_LDFLAGS := $(shell pkg-config --libs gtest gtest_main gmock) + # emulator name and flags QEMU := qemu-system-i386 -accel kvm -machine pc |