Browse Source

- u-boot: bump version to 2022.01; rework build

master
vanhofen 3 years ago
parent
commit
93e52959f5
  1. 4
      package/nano/nano.mk
  2. 4
      package/tzdata/tzdata.mk
  3. 22
      package/u-boot/u-boot.mk

4
package/nano/nano.mk

@ -29,11 +29,11 @@ NANO_CONF_OPTS = \
--without-slang \
--with-wordbounds
define NANO_INSTALL_EDITOR_SH
define NANO_INSTALL_PROFILE_D_SCRIPT
$(INSTALL) -d $(TARGET_sysconfdir)/profile.d
echo "export EDITOR=nano" > $(TARGET_sysconfdir)/profile.d/editor.sh
endef
NANO_PRE_FOLLOWUP_HOOKS += NANO_INSTALL_EDITOR_SH
NANO_TARGET_FINALIZE_HOOKS += NANO_INSTALL_PROFILE_D_SCRIPT
nano: | $(TARGET_DIR)
$(call PREPARE)

4
package/tzdata/tzdata.mk

@ -37,11 +37,11 @@ define TZDATA_INSTALL_TIMEZONE_FILES
endef
TZDATA_TARGET_FINALIZE_HOOKS += TZDATA_INSTALL_TIMEZONE_FILES
define TZDATA_INSTALL_TZ_SH
define TZDATA_INSTALL_PROFILE_D_SCRIPT
$(INSTALL) -d $(TARGET_sysconfdir)/profile.d
echo "export TZ=\$$(cat $(sysconfdir)/timezone)" > $(TARGET_sysconfdir)/profile.d/tz.sh
endef
TZDATA_TARGET_FINALIZE_HOOKS += TZDATA_INSTALL_TZ_SH
TZDATA_TARGET_FINALIZE_HOOKS += TZDATA_INSTALL_PROFILE_D_SCRIPT
tzdata: | $(TARGET_DIR)
$(call STARTUP)

22
package/u-boot/u-boot.mk

@ -4,23 +4,21 @@
#
################################################################################
HOST_U_BOOT_VERSION = 2018.09
HOST_U_BOOT_VERSION = 2022.01
HOST_U_BOOT_DIR = u-boot-$(HOST_U_BOOT_VERSION)
HOST_U_BOOT_SOURCE = u-boot-$(HOST_U_BOOT_VERSION).tar.bz2
HOST_U_BOOT_SITE = ftp://ftp.denx.de/pub/u-boot
$(DL_DIR)/$(HOST_U_BOOT_SOURCE):
$(download) $(HOST_U_BOOT_SITE)/$(HOST_U_BOOT_SOURCE)
HOST_MKIMAGE = $(HOST_DIR)/bin/mkimage
host-u-boot: $(DL_DIR)/$(HOST_U_BOOT_SOURCE) | $(HOST_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
define HOST_U_BOOT_INSTALL_BINARY
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE)
endef
HOST_U_BOOT_PRE_FOLLOWUP_HOOKS += HOST_U_BOOT_INSTALL_BINARY
host-u-boot: | $(HOST_DIR)
$(call PREPARE)
$(CHDIR)/$($(PKG)_DIR); \
$(MAKE) defconfig; \
$(MAKE) silentoldconfig; \
$(MAKE) tools-only
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
$(call HOST_FOLLOWUP)

Loading…
Cancel
Save