mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-16 07:27:35 +00:00
hw: ensure board_name is set as depot build
When no BOARD variable is set via the build environment, the board_name in the platform_info ROM needs to be set either. Ref genodelabs/genode#5360 Fix genodelabs/genode#5414
This commit is contained in:
parent
9239b36f05
commit
dc37c396cf
@ -62,6 +62,7 @@ SRC_CC += capability.cc
|
||||
SRC_CC += stack_area_addr.cc
|
||||
SRC_CC += heartbeat.cc
|
||||
|
||||
BOARD ?= unknown
|
||||
CC_OPT_platform += -DBOARD_NAME="\"$(BOARD)\""
|
||||
|
||||
# provide Genode version information
|
||||
|
@ -200,6 +200,7 @@ generalize_target_names: $(CONTENT)
|
||||
# supplement BOARD definition that normally comes form the build dir
|
||||
sed -i "s/\?= unknown/:= $(BOARD)/" src/core/hw/target.mk
|
||||
sed -i "s/\?= unknown/:= $(BOARD)/" src/bootstrap/hw/target.mk
|
||||
sed -i "s/\?= unknown/:= $(BOARD)/" lib/mk/core-hw.inc
|
||||
# discharge targets when building for mismatching architecture
|
||||
sed -i "1aREQUIRES := $(ARCH)" src/core/hw/target.mk
|
||||
sed -i "1aREQUIRES := $(ARCH)" src/bootstrap/hw/target.mk
|
||||
|
Loading…
x
Reference in New Issue
Block a user