diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-12-25 04:27:46 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-12-25 07:27:32 +0100 |
commit | 99fef7a3975a44a42abe3d179a8126b2205c9705 (patch) | |
tree | 3be21308b8b6b1ca1c19f804516769a5181fbd51 /package/u-boot | |
parent | eba08d09f65f58076df2978b41589b15cb7bb8d5 (diff) |
u-boot: enable fw_printenv
Diffstat (limited to 'package/u-boot')
-rw-r--r-- | package/u-boot/Makefile | 17 | ||||
-rw-r--r-- | package/u-boot/files/fw_env.config | 2 | ||||
-rwxr-xr-x | package/u-boot/files/uboot_print_env | 5 | ||||
-rwxr-xr-x | package/u-boot/files/uboot_set_env | 5 |
4 files changed, 8 insertions, 21 deletions
diff --git a/package/u-boot/Makefile b/package/u-boot/Makefile index 45991de05..04c2d2fa9 100644 --- a/package/u-boot/Makefile +++ b/package/u-boot/Makefile @@ -113,28 +113,25 @@ do-build: PATH='$(HOST_PATH)' \ CROSS_COMPILE='$(TARGET_CROSS)' \ $(MAKE)) -ifneq ($(OS_FOR_BUILD),Darwin) (cd $(WRKBUILD) && env \ PATH='$(HOST_PATH)' \ CROSS_COMPILE='$(TARGET_CROSS)' \ - $(MAKE) env) -endif + $(MAKE) envtools) u-boot-install: $(CP) $(WRKBUILD)/$(UBOOT) $(FW_DIR) + $(INSTALL_DIR) $(IDIR_U_BOOT)/etc + $(CP) ./files/fw_env.config $(IDIR_U_BOOT)/etc + $(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 -s fw_printenv fw_setenv ifeq ($(ADK_TARGET_SYSTEM_ROCKPI4_PLUS),y) $(CP) $(WRKBUILD)/idbloader.img $(FW_DIR) endif ifeq ($(ADK_TARGET_SYSTEM_IMGTEC_CI20),y) $(CP) $(WRKBUILD)/spl/u-boot-spl.bin $(FW_DIR) endif - $(INSTALL_DIR) $(IDIR_U_BOOT)/etc - $(CP) ./files/fw_env.config $(IDIR_U_BOOT)/etc -ifneq ($(OS_FOR_BUILD),Darwin) - $(INSTALL_DIR) $(IDIR_U_BOOT)/usr/bin - $(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 diff --git a/package/u-boot/files/fw_env.config b/package/u-boot/files/fw_env.config index 5571d60e0..7b798416e 100644 --- a/package/u-boot/files/fw_env.config +++ b/package/u-boot/files/fw_env.config @@ -1 +1 @@ -/mnt/uboot.env 0x0000 0x4000 +/dev/mmcblk0 -0x20000 0x20000 diff --git a/package/u-boot/files/uboot_print_env b/package/u-boot/files/uboot_print_env deleted file mode 100755 index 7231e1a47..000000000 --- a/package/u-boot/files/uboot_print_env +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -mount -r /dev/mmcblk0p1 /mnt -fw_printenv "$@" -umount /mnt diff --git a/package/u-boot/files/uboot_set_env b/package/u-boot/files/uboot_set_env deleted file mode 100755 index 7b5a33ccc..000000000 --- a/package/u-boot/files/uboot_set_env +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -mount /dev/mmcblk0p1 /mnt -fw_setenv "$@" -umount /mnt |