lh | 758261d | 2023-07-13 05:52:04 -0700 | [diff] [blame^] | 1 | ############################################################################
|
| 2 | #
|
| 3 | # Makefile -- Build for rootfs makefile.
|
| 4 | #
|
| 5 | # Copyright (c) 2001-2004, SnapGear (www.snapgear.com)
|
| 6 | # Copyright (c) 2001, Lineo
|
| 7 | #
|
| 8 | # Add by yinweiyang 2023-06-26
|
| 9 | #
|
| 10 | ############################################################################
|
| 11 | CP = cp
|
| 12 | ROMFS_DIR = $(ROMFSDIR)
|
| 13 |
|
| 14 | .PHONY: romfs tzdata
|
| 15 |
|
| 16 | all:
|
| 17 |
|
| 18 | romfs:
|
| 19 | chmod +x ./zoneinfo/*
|
| 20 | mkdir -p $(ROMFS_DIR)/usr/share/zoneinfo
|
| 21 | ifneq ($(CONFIG_TZDATA_MODULE),)
|
| 22 | #$(CP) -rf ./zoneinfo/$(CONFIG_TZDATA_MODULE)/* $(ROMFS_DIR)/usr/share/zoneinfo
|
| 23 | $(CP) -rf ./zoneinfo/$(CONFIG_TZDATA_MODULE) $(ROMFS_DIR)/usr/share/zoneinfo/
|
| 24 | else
|
| 25 | $(CP) -rf ./zoneinfo/* $(ROMFS_DIR)/usr/share/zoneinfo
|
| 26 | endif
|
| 27 |
|
| 28 |
|