mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
barebox: add option to build bareboxenv for target
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
9639a9ab88
commit
4fb67dbb95
@ -11,4 +11,10 @@ config BR2_TARGET_BAREBOX_BOARD_DEFCONFIG
|
|||||||
help
|
help
|
||||||
Name of the board for which Barebox should be built, without
|
Name of the board for which Barebox should be built, without
|
||||||
the _defconfig suffix.
|
the _defconfig suffix.
|
||||||
|
|
||||||
|
config BR2_TARGET_BAREBOX_BAREBOXENV
|
||||||
|
bool "bareboxenv tool in target"
|
||||||
|
help
|
||||||
|
Install bareboxenv tool in target.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -48,7 +48,14 @@ $(BAREBOX_DIR)/.installed: $(BAREBOX_DIR)/.built
|
|||||||
cp $(BAREBOX_DIR)/barebox.bin $(BINARIES_DIR)
|
cp $(BAREBOX_DIR)/barebox.bin $(BINARIES_DIR)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
barebox: $(BAREBOX_DIR)/.installed
|
# bareboxenv for the target
|
||||||
|
$(TARGET_DIR)/usr/bin/bareboxenv: $(BAREBOX_DIR)/.configured
|
||||||
|
mkdir -p $(@D)
|
||||||
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o $@ \
|
||||||
|
$(BAREBOX_DIR)/scripts/bareboxenv.c
|
||||||
|
|
||||||
|
barebox: $(BAREBOX_DIR)/.installed \
|
||||||
|
$(if $(BR2_TARGET_BAREBOX_BAREBOXENV),$(TARGET_DIR)/usr/bin/bareboxenv)
|
||||||
|
|
||||||
ifeq ($(BR2_TARGET_BAREBOX),y)
|
ifeq ($(BR2_TARGET_BAREBOX),y)
|
||||||
TARGETS+=barebox
|
TARGETS+=barebox
|
||||||
|
Loading…
x
Reference in New Issue
Block a user