mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -8,6 +8,16 @@ TZ_DEPENDENCIES = host-tzdata host-tzdump
|
||||
TZ_LICENSE = Public domain
|
||||
|
||||
TZ_LOCALTIME = $(call qstrip,$(BR2_TARGET_LOCALTIME))
|
||||
ifneq ($(TZ_LOCALTIME),)
|
||||
define TZ_SET_LOCALTIME
|
||||
if [ ! -f $(TARGET_DIR)/usr/share/zoneinfo/uclibc/$(TZ_LOCALTIME) ]; then \
|
||||
printf "Error: '%s' is not a valid timezone, check your BR2_TARGET_LOCALTIME setting\n" \
|
||||
"$(TZ_LOCALTIME)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
ln -sf ../usr/share/zoneinfo/uclibc/$(TZ_LOCALTIME) $(TARGET_DIR)/etc/TZ
|
||||
endef
|
||||
endif
|
||||
|
||||
define TZ_BUILD_CMDS
|
||||
(cd $(HOST_DIR)/share/zoneinfo/posix/; \
|
||||
@@ -25,12 +35,7 @@ define TZ_INSTALL_TARGET_CMDS
|
||||
$(TARGET_DIR)/usr/share/zoneinfo/iso3166.tab
|
||||
mkdir -p $(TARGET_DIR)/usr/share/zoneinfo/uclibc
|
||||
cp -a $(@D)/output/* $(TARGET_DIR)/usr/share/zoneinfo/uclibc
|
||||
if [ ! -f $(TARGET_DIR)/usr/share/zoneinfo/uclibc/$(TZ_LOCALTIME) ]; then \
|
||||
printf "Error: '%s' is not a valid timezone, check your BR2_TARGET_LOCALTIME setting\n" \
|
||||
"$(TZ_LOCALTIME)"; \
|
||||
exit 1; \
|
||||
fi
|
||||
ln -sf ../usr/share/zoneinfo/uclibc/$(TZ_LOCALTIME) $(TARGET_DIR)/etc/TZ
|
||||
$(TZ_SET_LOCALTIME)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
Reference in New Issue
Block a user