aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-24 09:41:08 -0700
committerChristian Cunningham <cc@localhost>2022-03-24 09:41:08 -0700
commitd91b1f275e7a62fa5787df49769238c29c605a91 (patch)
tree46b7e3d3795129bc974e87bfaf43f66b8fced645
parent93bf62580a68533dc8252b9a2a055c02f34ecb67 (diff)
Build command flag
-rw-r--r--Common.mk8
1 files changed, 1 insertions, 7 deletions
diff --git a/Common.mk b/Common.mk
index 8d91776..4d349c3 100644
--- a/Common.mk
+++ b/Common.mk
@@ -19,7 +19,6 @@ A_OBJECTD = $(A_OBJECTK) $(A_OBJECTU)
ATTACH_USB ?= 0
AUTO ?= 0
BSP ?= 2
-BUILD ?= 0
GDEBUG ?= 0
DEBUG ?= 0
SILENT ?= 0
@@ -56,12 +55,6 @@ ifeq ($(BSP),2)
CFLAGS += -DBSP23
endif
-# Use Correct Hardware Timing
-ifneq ($(BUILD),0)
- RPI_BUILD = 1
- CFLAGS += -DRPI_BUILD
-endif
-
# Pause and wait for GDB if requested
ifneq ($(GDEBUG),0)
QFLAGS += -s -S
@@ -86,6 +79,7 @@ endif
default: clean build/kernel7.img
+build/kernel7.img: CFLAGS += -DRPI_BUILD
build/kernel7.img: build/kernel.elf
@mkdir -p $(@D)
${OBJCOPY} $< -O binary $@