update buildroot to 2017.02.11
This commit is contained in:
9
bsp/buildroot-2017.02.11/package/tzdata/Config.in
Normal file
9
bsp/buildroot-2017.02.11/package/tzdata/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
# This package is not meant to be user-visible.
|
||||
# It gets selected by BR2_TARGET_TZ in system/Config.in
|
||||
|
||||
config BR2_PACKAGE_TZDATA
|
||||
bool
|
||||
help
|
||||
Time zone database
|
||||
|
||||
http://www.iana.org/time-zones/repository/tz-link.html
|
||||
2
bsp/buildroot-2017.02.11/package/tzdata/tzdata.hash
Normal file
2
bsp/buildroot-2017.02.11/package/tzdata/tzdata.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://mm.icann.org/pipermail/tz-announce/2016-November/000044.html
|
||||
sha512 ce0b9958b764479fac7df6b5ba0933fc4c6d815ebccc2537c75c4be105691cd58054704eebfb50ca755d7d48504480d4925ce8836eb499ae4798e3d5503d7e0e tzdata2016j.tar.gz
|
||||
66
bsp/buildroot-2017.02.11/package/tzdata/tzdata.mk
Normal file
66
bsp/buildroot-2017.02.11/package/tzdata/tzdata.mk
Normal file
@@ -0,0 +1,66 @@
|
||||
################################################################################
|
||||
#
|
||||
# tzdata
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TZDATA_VERSION = 2016j
|
||||
TZDATA_SOURCE = tzdata$(TZDATA_VERSION).tar.gz
|
||||
TZDATA_SITE = http://www.iana.org/time-zones/repository/releases
|
||||
TZDATA_STRIP_COMPONENTS = 0
|
||||
TZDATA_DEPENDENCIES = host-tzdata
|
||||
HOST_TZDATA_DEPENDENCIES = host-zic
|
||||
TZDATA_LICENSE = Public domain
|
||||
|
||||
# Take care when re-ordering this list since this might break zone
|
||||
# dependencies
|
||||
TZDATA_DEFAULT_ZONELIST = \
|
||||
africa antarctica asia australasia europe northamerica \
|
||||
southamerica pacificnew etcetera backward systemv factory
|
||||
|
||||
ifeq ($(call qstrip,$(BR2_TARGET_TZ_ZONELIST)),default)
|
||||
TZDATA_ZONELIST = $(TZDATA_DEFAULT_ZONELIST)
|
||||
else
|
||||
TZDATA_ZONELIST = $(call qstrip,$(BR2_TARGET_TZ_ZONELIST))
|
||||
endif
|
||||
|
||||
TZDATA_LOCALTIME = $(call qstrip,$(BR2_TARGET_LOCALTIME))
|
||||
|
||||
# No need to extract for target, we're using the host-installed files
|
||||
TZDATA_EXTRACT_CMDS =
|
||||
|
||||
define TZDATA_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/zoneinfo
|
||||
cp -a $(HOST_DIR)/usr/share/zoneinfo/* $(TARGET_DIR)/usr/share/zoneinfo
|
||||
cd $(TARGET_DIR)/usr/share/zoneinfo; \
|
||||
for zone in posix/*; do \
|
||||
ln -sfn "$${zone}" "$${zone##*/}"; \
|
||||
done
|
||||
if [ -n "$(TZDATA_LOCALTIME)" ]; then \
|
||||
if [ ! -f $(TARGET_DIR)/usr/share/zoneinfo/$(TZDATA_LOCALTIME) ]; then \
|
||||
printf "Error: '%s' is not a valid timezone, check your BR2_TARGET_LOCALTIME setting\n" \
|
||||
"$(TZDATA_LOCALTIME)"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
cd $(TARGET_DIR)/etc; \
|
||||
ln -sf ../usr/share/zoneinfo/$(TZDATA_LOCALTIME) localtime; \
|
||||
echo "$(TZDATA_LOCALTIME)" >timezone; \
|
||||
fi
|
||||
endef
|
||||
|
||||
define HOST_TZDATA_BUILD_CMDS
|
||||
(cd $(@D); \
|
||||
for zone in $(TZDATA_ZONELIST); do \
|
||||
$(ZIC) -d _output/posix -y yearistype.sh $$zone || exit 1; \
|
||||
$(ZIC) -d _output/right -L leapseconds -y yearistype.sh $$zone || exit 1; \
|
||||
done; \
|
||||
)
|
||||
endef
|
||||
|
||||
define HOST_TZDATA_INSTALL_CMDS
|
||||
$(INSTALL) -d -m 0755 $(HOST_DIR)/usr/share/zoneinfo
|
||||
cp -a $(@D)/_output/* $(@D)/*.tab $(HOST_DIR)/usr/share/zoneinfo
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user