diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-12 09:30:02 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-12 09:30:02 +0200 |
commit | ce8cf066651647f7eeac290dfbbabae64d4e3660 (patch) | |
tree | 92de6993bc4ca10fcd427749b2f8128462675b43 /package/u-boot/Makefile | |
parent | 6fc5a3d432a5b4d090fa0118165458f0ffecd581 (diff) |
u-boot: avoid fw_printenv on Darwin
Diffstat (limited to 'package/u-boot/Makefile')
-rw-r--r-- | package/u-boot/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile index 3c2c26ae4..64a8fb81d 100644 --- a/package/u-boot/Makefile +++ b/package/u-boot/Makefile @@ -68,19 +68,26 @@ do-build: PATH='$(HOST_PATH)' \ CROSS_COMPILE='$(TARGET_CROSS)' \ GCC_HONOUR_COPTS=s $(MAKE)) - (cd $(WRKBUILD) && env CROSS_COMPILE='$(TARGET_CROSS)' \ +ifneq ($(OS_FOR_BUILD),Darwin) + (cd $(WRKBUILD) && env \ + PATH='$(HOST_PATH)' \ + CROSS_COMPILE='$(TARGET_CROSS)' \ GCC_HONOUR_COPTS=s $(MAKE) env) +endif u-boot-install: $(CP) $(WRKBUILD)/$(UBOOT) $(FW_DIR) $(INSTALL_DIR) $(IDIR_U_BOOT)/etc $(CP) ./files/fw_env.config $(IDIR_U_BOOT)/etc +ifneq ($(OS_FOR_BUILD),Darwin) + (cd $(WRKBUILD) && env \ $(INSTALL_DIR) $(IDIR_U_BOOT)/usr/bin $(INSTALL_BIN) $(WRKBUILD)/tools/env/fw_printenv \ $(IDIR_U_BOOT)/usr/bin (cd $(IDIR_U_BOOT)/usr/bin && ln -sf fw_printenv fw_setenv) $(INSTALL_BIN) ./files/uboot_print_env $(IDIR_U_BOOT)/usr/bin $(INSTALL_BIN) ./files/uboot_set_env $(IDIR_U_BOOT)/usr/bin +endif ifeq ($(ADK_TARGET_SYSTEM_BANANA_PRO),y) $(INSTALL_BIN) ./files/boot.script.bpi $(FW_DIR) endif |