Created
August 28, 2020 07:37
-
-
Save paresy/9f6557d444e953b0d2fd9e1bcc761ad2 to your computer and use it in GitHub Desktop.
simplify tzdata folder structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur buildroot/package/tzdata/tzdata.mk buildroot-patched/package/tzdata/tzdata.mk | |
--- buildroot/package/tzdata/tzdata.mk 2020-08-26 21:07:57.000000000 +0200 | |
+++ buildroot-patched/package/tzdata/tzdata.mk 2020-08-27 16:54:38.000000000 +0200 | |
@@ -41,18 +41,13 @@ | |
define TZDATA_INSTALL_TARGET_CMDS | |
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/share/zoneinfo | |
cp -a $(HOST_DIR)/share/zoneinfo/* $(TARGET_DIR)/usr/share/zoneinfo | |
- cd $(TARGET_DIR)/usr/share/zoneinfo; \ | |
- for zone in posix/*; do \ | |
- ln -sfn "$${zone}" "$${zone##*/}"; \ | |
- done | |
$(TZDATA_SET_LOCALTIME) | |
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; \ | |
+ $(ZIC) -d _output -y yearistype.sh $$zone || exit 1; \ | |
done; \ | |
) | |
endef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment