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 \ --without-slang \
--with-wordbounds --with-wordbounds
define NANO_INSTALL_EDITOR_SH define NANO_INSTALL_PROFILE_D_SCRIPT
$(INSTALL) -d $(TARGET_sysconfdir)/profile.d $(INSTALL) -d $(TARGET_sysconfdir)/profile.d
echo "export EDITOR=nano" > $(TARGET_sysconfdir)/profile.d/editor.sh echo "export EDITOR=nano" > $(TARGET_sysconfdir)/profile.d/editor.sh
endef endef
NANO_PRE_FOLLOWUP_HOOKS += NANO_INSTALL_EDITOR_SH NANO_TARGET_FINALIZE_HOOKS += NANO_INSTALL_PROFILE_D_SCRIPT
nano: | $(TARGET_DIR) nano: | $(TARGET_DIR)
$(call PREPARE) $(call PREPARE)

4
package/tzdata/tzdata.mk

@ -37,11 +37,11 @@ define TZDATA_INSTALL_TIMEZONE_FILES
endef endef
TZDATA_TARGET_FINALIZE_HOOKS += TZDATA_INSTALL_TIMEZONE_FILES 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 $(INSTALL) -d $(TARGET_sysconfdir)/profile.d
echo "export TZ=\$$(cat $(sysconfdir)/timezone)" > $(TARGET_sysconfdir)/profile.d/tz.sh echo "export TZ=\$$(cat $(sysconfdir)/timezone)" > $(TARGET_sysconfdir)/profile.d/tz.sh
endef endef
TZDATA_TARGET_FINALIZE_HOOKS += TZDATA_INSTALL_TZ_SH TZDATA_TARGET_FINALIZE_HOOKS += TZDATA_INSTALL_PROFILE_D_SCRIPT
tzdata: | $(TARGET_DIR) tzdata: | $(TARGET_DIR)
$(call STARTUP) $(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_DIR = u-boot-$(HOST_U_BOOT_VERSION)
HOST_U_BOOT_SOURCE = u-boot-$(HOST_U_BOOT_VERSION).tar.bz2 HOST_U_BOOT_SOURCE = u-boot-$(HOST_U_BOOT_VERSION).tar.bz2
HOST_U_BOOT_SITE = ftp://ftp.denx.de/pub/u-boot 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_MKIMAGE = $(HOST_DIR)/bin/mkimage
host-u-boot: $(DL_DIR)/$(HOST_U_BOOT_SOURCE) | $(HOST_DIR) define HOST_U_BOOT_INSTALL_BINARY
$(REMOVE)/$(PKG_DIR) $(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE)
$(UNTAR)/$(PKG_SOURCE) endef
$(CHDIR)/$(PKG_DIR); \ HOST_U_BOOT_PRE_FOLLOWUP_HOOKS += HOST_U_BOOT_INSTALL_BINARY
host-u-boot: | $(HOST_DIR)
$(call PREPARE)
$(CHDIR)/$($(PKG)_DIR); \
$(MAKE) defconfig; \ $(MAKE) defconfig; \
$(MAKE) silentoldconfig; \
$(MAKE) tools-only $(MAKE) tools-only
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/tools/mkimage $(HOST_MKIMAGE) $(call HOST_FOLLOWUP)
$(REMOVE)/$(PKG_DIR)
$(TOUCH)

Loading…
Cancel
Save