Skip to content

Commit aaf2c1c

Browse files
[ion][build] Relocate epsilon-bootloader
1 parent 3fd9c99 commit aaf2c1c

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

build/targets.device.n0110.bootloader.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ bootloader_obj = $(call flavored_object_for,$(bootloader_src),leavebootloader)
88
$(BUILD_DIR)/bootloader.$(EXE): $(bootloader_obj)
99

1010
$(BUILD_DIR)/bootloader.$(EXE): LDFLAGS += -Lion/src/$(PLATFORM)/shared -Lion/src/$(PLATFORM)/$(MODEL)/shared
11-
$(BUILD_DIR)/bootloader.$(EXE): LDSCRIPT = epsilon-bootloader/$(PLATFORM)/$(MODEL)/bootloader/bootloader_flash.ld
11+
$(BUILD_DIR)/bootloader.$(EXE): LDSCRIPT = ion/src/$(PLATFORM)/$(MODEL)/epsilon-bootloader/bootloader/bootloader_flash.ld

ion/src/device/Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
ifeq ($(FIRMWARE_COMPONENT),bootloader)
2-
include epsilon-bootloader/device/$(MODEL)/Makefile
2+
include ion/src/$(PLATFORM)/$(MODEL)/epsilon-bootloader/$(FIRMWARE_COMPONENT)/Makefile
33
else
4-
-include ion/src/device/$(MODEL)/$(FIRMWARE_COMPONENT)/Makefile
4+
-include ion/src/$(PLATFORM)/$(MODEL)/$(FIRMWARE_COMPONENT)/Makefile
55
endif
66

7-
include ion/src/device/$(MODEL)/shared/Makefile
7+
include ion/src/$(PLATFORM)/$(MODEL)/shared/Makefile
88

99
# We need to work around a GCC bug (concerning versions < 5.1). It is valid in
1010
# C++11 to initialize a character array by providing a string litteral (e.g.
1111
# char test[4]= "ab"; is valid and should initialize test to 'a','b',0,0).
1212
# Older versions of GCC are not conformant so we resort to an initializer list.
1313
initializer_list = $(shell echo $(1) | sed "s/\(.\)/'\1',/g")0
14-
$(call object_for,ion/src/device/kernel/drivers/kernel_header.cpp ion/src/device/userland/drivers/userland_header.cpp): SFLAGS += -DPATCH_LEVEL="$(call initializer_list,$(PATCH_LEVEL))" -DEPSILON_VERSION="$(call initializer_list,$(EPSILON_VERSION))"
14+
$(call object_for,ion/src/$(PLATFORM)/kernel/drivers/kernel_header.cpp ion/src/$(PLATFORM)/userland/drivers/userland_header.cpp): SFLAGS += -DPATCH_LEVEL="$(call initializer_list,$(PATCH_LEVEL))" -DEPSILON_VERSION="$(call initializer_list,$(EPSILON_VERSION))"
1515

16-
ION_DEVICE_SFLAGS += -Iion/src/device/$(MODEL)/shared -Iion/src/device/$(MODEL) -Iion/src/device/shared -Iion/src/device #TODO EMILIE: remove */shared and specify shared in inclusions
16+
ION_DEVICE_SFLAGS += -Iion/src/$(PLATFORM)/$(MODEL)/shared -Iion/src/$(PLATFORM)/$(MODEL) -Iion/src/$(PLATFORM)/shared -Iion/src/$(PLATFORM) #TODO EMILIE: remove */shared and specify shared in inclusions
1717

1818
IN_FACTORY ?= 0
1919
ION_DEVICE_SFLAGS += -DPCB_LATEST=$(PCB_LATEST) -DIN_FACTORY=$(IN_FACTORY)
2020

21-
$(call object_for,$(ion_device_$(FIRMWARE_COMPONENT)_src)): SFLAGS += $(ION_DEVICE_SFLAGS)
21+
$(call object_for,$(ion_$(PLATFORM)_$(FIRMWARE_COMPONENT)_src)): SFLAGS += $(ION_DEVICE_SFLAGS)
2222

0 commit comments

Comments
 (0)