diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2011-02-06 21:40:19 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-02-06 21:40:19 +0100 |
commit | 4fb67dbb958f3c3bea2b5bfe34d2ffbaa6ea6e40 (patch) | |
tree | 3d9cf3f4e55aa56548d095d17ccaeec2fc149552 /boot/barebox/barebox.mk | |
parent | 9639a9ab88f02c18f7d6994516e82a3489210249 (diff) |
barebox: add option to build bareboxenv for target
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'boot/barebox/barebox.mk')
-rw-r--r-- | boot/barebox/barebox.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk index 07266d996..09deb5cd2 100644 --- a/boot/barebox/barebox.mk +++ b/boot/barebox/barebox.mk @@ -48,7 +48,14 @@ $(BAREBOX_DIR)/.installed: $(BAREBOX_DIR)/.built cp $(BAREBOX_DIR)/barebox.bin $(BINARIES_DIR) 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) TARGETS+=barebox |