cpu_bench: disable Thumb when compiled on linux

genodelabs/genode#4454
This commit is contained in:
Johannes Schlatow 2022-02-28 16:19:53 +01:00 committed by Christian Helmuth
parent d372afd81e
commit 85daf1b3b2
2 changed files with 4 additions and 1 deletions

View File

@ -1,11 +1,12 @@
OBJECTS := main.o bogomips.o
GEN_DIR = $(LINUX_DIR)/..
CC_MARCH ?=
cpu_bench: $(OBJECTS)
g++ $(OBJECTS) -o $@
main.o: $(LINUX_DIR)/main.cc $(GEN_DIR)/bogomips.h
g++ -c -I$(GEN_DIR) -O2 -Wall -Wextra -Weffc++ -std=gnu++11 $< -o $@
g++ -c -I$(GEN_DIR) $(CC_MARCH) -mcpu=native -O2 -Wall -Wextra -Weffc++ -std=gnu++11 $< -o $@
bogomips.o: ../bogomips.s
gcc -c -O2 -Wall -Wextra $< -o $@

View File

@ -1,3 +1,5 @@
LINUX_DIR = $(PWD)/../../../linux
CC_MARCH = -marm
include $(LINUX_DIR)/Makefile.inc