2 # Copyright (C) 2006-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=uboot-envtools
12 PKG_VERSION
:=2023.07.02
15 PKG_SOURCE
:=$(PKG_DISTNAME
)-$(PKG_VERSION
).
tar.bz2
17 https
://ftp.denx.de
/pub
/u-boot \
18 https
://mirror.cyberbits.eu
/u-boot \
19 ftp
://ftp.denx.de
/pub
/u-boot
20 PKG_HASH
:=6b6a48581c14abb0f95bd87c1af4d740922406d7b801002a9f94727fdde021d5
21 PKG_SOURCE_SUBDIR
:=$(PKG_DISTNAME
)-$(PKG_VERSION
)
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_DISTNAME
)-$(PKG_VERSION
)
24 PKG_BUILD_DEPENDS
:=fstools
26 PKG_LICENSE
:=GPL-2.0 GPL-2.0
+
27 PKG_LICENSE_FILES
:=Licenses
/README
33 include $(INCLUDE_DIR
)/package.mk
35 define Package
/uboot-envtools
39 TITLE
:=read
/modify U-Boot bootloader environment
40 URL
:=http
://www.denx.de
/wiki
/U-Boot
43 define Package
/uboot-envtools
/description
44 This package includes tools to read and modify U-Boot bootloader environment.
47 define Build
/Configure
48 $(call Build
/Compile
/Default
,tools-only_defconfig
)
52 $(call Build
/Compile
/Default
,envtools
)
55 # We need to override the ARCH passed by buildsystem as otherwise the defconfig
56 # for tools-only wont match and the includes for sandbox will be dropped
59 TARGET_CFLAGS
="$(TARGET_CFLAGS)" \
60 TARGET_LDFLAGS
="$(TARGET_LDFLAGS)"
62 define Package
/uboot-envtools
/conffiles
68 define Package
/uboot-envtools
/install
69 $(INSTALL_DIR
) $(1)/usr
/sbin
70 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/tools
/env
/fw_printenv
$(1)/usr
/sbin
71 $(LN
) fw_printenv
$(1)/usr
/sbin
/fw_setenv
72 $(INSTALL_BIN
) .
/files
/fw_printsys
$(1)/usr
/sbin
73 $(INSTALL_BIN
) .
/files
/fw_setsys
$(1)/usr
/sbin
74 $(INSTALL_DIR
) $(1)/lib
75 $(INSTALL_DATA
) .
/files
/uboot-envtools.sh
$(1)/lib
76 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
77 $(if
$(wildcard .
/files
/$(BOARD
)_
$(SUBTARGET
)), \
78 $(INSTALL_DATA
) .
/files
/$(BOARD
)_
$(SUBTARGET
) \
79 $(1)/etc
/uci-defaults
/30_uboot-envtools
, \
80 $(if
$(wildcard .
/files
/$(BOARD
)), \
81 $(INSTALL_DATA
) .
/files
/$(BOARD
) \
82 $(1)/etc
/uci-defaults
/30_uboot-envtools \
87 $(eval
$(call BuildPackage
,uboot-envtools
))