2010-03-05 20:27:58 +00:00
|
|
|
#
|
2014-01-24 00:07:48 +00:00
|
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
2009-10-07 15:14:28 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=uboot-envtools
|
2011-10-24 21:49:24 +00:00
|
|
|
PKG_DISTNAME:=u-boot
|
2024-01-29 18:38:20 +00:00
|
|
|
PKG_VERSION:=2024.01
|
2024-01-05 17:42:53 +00:00
|
|
|
PKG_RELEASE:=3
|
2020-04-18 22:39:08 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:= \
|
|
|
|
https://ftp.denx.de/pub/u-boot \
|
|
|
|
https://mirror.cyberbits.eu/u-boot \
|
|
|
|
ftp://ftp.denx.de/pub/u-boot
|
2024-01-29 18:38:20 +00:00
|
|
|
PKG_HASH:=b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3
|
2018-05-01 19:59:05 +00:00
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-$(PKG_VERSION)
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_DISTNAME)-$(PKG_VERSION)
|
2009-10-07 15:14:28 +00:00
|
|
|
|
2018-01-07 18:52:05 +00:00
|
|
|
PKG_BUILD_DEPENDS:=fstools
|
2014-06-02 12:44:19 +00:00
|
|
|
|
2014-11-29 23:45:53 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0 GPL-2.0+
|
|
|
|
PKG_LICENSE_FILES:=Licenses/README
|
|
|
|
|
2016-11-21 23:04:48 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2014-11-30 01:14:17 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2013-03-15 01:36:53 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-10-24 21:49:24 +00:00
|
|
|
|
2009-10-07 15:14:28 +00:00
|
|
|
define Package/uboot-envtools
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2016-11-02 19:33:01 +00:00
|
|
|
SUBMENU:=Boot Loaders
|
2010-03-10 04:17:22 +00:00
|
|
|
TITLE:=read/modify U-Boot bootloader environment
|
2010-04-23 11:27:29 +00:00
|
|
|
URL:=http://www.denx.de/wiki/U-Boot
|
2012-06-04 21:55:49 +00:00
|
|
|
endef
|
|
|
|
|
2009-10-07 15:14:28 +00:00
|
|
|
define Package/uboot-envtools/description
|
2010-03-10 04:17:22 +00:00
|
|
|
This package includes tools to read and modify U-Boot bootloader environment.
|
2009-10-07 15:14:28 +00:00
|
|
|
endef
|
|
|
|
|
2013-03-15 01:36:53 +00:00
|
|
|
define Build/Configure
|
2023-08-21 12:58:05 +00:00
|
|
|
$(call Build/Compile/Default,tools-only_defconfig)
|
2013-03-15 01:36:53 +00:00
|
|
|
endef
|
|
|
|
|
2023-08-21 12:58:05 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(call Build/Compile/Default,envtools)
|
|
|
|
endef
|
|
|
|
|
|
|
|
# We need to override the ARCH passed by buildsystem as otherwise the defconfig
|
|
|
|
# for tools-only wont match and the includes for sandbox will be dropped
|
2019-11-07 20:01:40 +00:00
|
|
|
MAKE_FLAGS += \
|
2023-08-21 12:58:05 +00:00
|
|
|
ARCH="sandbox" \
|
2019-11-07 20:01:40 +00:00
|
|
|
TARGET_CFLAGS="$(TARGET_CFLAGS)" \
|
2023-08-21 12:58:05 +00:00
|
|
|
TARGET_LDFLAGS="$(TARGET_LDFLAGS)"
|
2012-06-04 21:55:49 +00:00
|
|
|
|
|
|
|
define Package/uboot-envtools/conffiles
|
|
|
|
/etc/config/ubootenv
|
|
|
|
/etc/fw_env.config
|
2021-04-06 09:43:03 +00:00
|
|
|
/etc/fw_sys.config
|
2011-11-01 09:23:29 +00:00
|
|
|
endef
|
|
|
|
|
2009-10-07 15:14:28 +00:00
|
|
|
define Package/uboot-envtools/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2013-03-15 01:36:53 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/env/fw_printenv $(1)/usr/sbin
|
2015-04-03 00:07:43 +00:00
|
|
|
$(LN) fw_printenv $(1)/usr/sbin/fw_setenv
|
2021-04-06 09:43:04 +00:00
|
|
|
$(INSTALL_BIN) ./files/fw_printsys $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) ./files/fw_setsys $(1)/usr/sbin
|
2012-06-04 21:55:49 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib
|
|
|
|
$(INSTALL_DATA) ./files/uboot-envtools.sh $(1)/lib
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
2021-04-01 22:52:56 +00:00
|
|
|
$(if $(wildcard ./files/$(BOARD)_$(SUBTARGET)), \
|
|
|
|
$(INSTALL_DATA) ./files/$(BOARD)_$(SUBTARGET) \
|
|
|
|
$(1)/etc/uci-defaults/30_uboot-envtools, \
|
|
|
|
$(if $(wildcard ./files/$(BOARD)), \
|
|
|
|
$(INSTALL_DATA) ./files/$(BOARD) \
|
|
|
|
$(1)/etc/uci-defaults/30_uboot-envtools \
|
|
|
|
) \
|
2018-04-19 14:26:39 +00:00
|
|
|
)
|
2011-10-24 21:49:24 +00:00
|
|
|
endef
|
|
|
|
|
2009-10-07 15:14:28 +00:00
|
|
|
$(eval $(call BuildPackage,uboot-envtools))
|