lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 |
|
| 2 | ############################################################################
|
| 3 | #
|
| 4 | # Makefile -- Build for rootfs makefile.
|
| 5 | #
|
| 6 | # Copyright (c) 2001-2004, SnapGear (www.snapgear.com)
|
| 7 | # Copyright (c) 2001, Lineo
|
| 8 | #
|
| 9 | # Add by zhouwei 2010-08-06 for freescale imx28 platform
|
| 10 | #
|
| 11 | ############################################################################
|
| 12 | CP = cp
|
| 13 | ROMFS_DIR = $(ROMFSDIR)
|
| 14 | $(warning CONFIG_WIFI_MODULE=$(CONFIG_WIFI_MODULE))
|
| 15 | .PHONY: romfs wifi
|
| 16 |
|
| 17 | ifneq ($(CONFIG_WIFI_MODULE), )
|
| 18 | CPWIFI=wifi
|
| 19 | endif
|
| 20 |
|
| 21 | $(warning CPWIFI=$(CPWIFI))
|
| 22 | all:
|
| 23 |
|
| 24 | romfs: $(CPWIFI)
|
| 25 | chmod +x ./scripts/*.sh
|
| 26 | $(CP) -f ./scripts/*.sh $(ROMFS_DIR)/sbin/
|
| 27 | #$(CP) -f ./scripts/*.txt $(ROMFS_DIR)/sbin/
|
| 28 | mkdir -p $(ROMFS_DIR)/etc_ro/
|
| 29 | $(CP) -f ./etc/*.conf $(ROMFS_DIR)/etc_ro/
|
| 30 | $(CP) -f ./etc/options.auth $(ROMFS_DIR)/etc_ro/
|
| 31 | $(CP) -f ./etc/options.noauth $(ROMFS_DIR)/etc_ro/
|
| 32 | $(CP) -f ./etc/initchat $(ROMFS_DIR)/etc_ro/
|
| 33 | ifneq ($(CONFIG_USE_WEBUI_SECURITY),yes)
|
| 34 | $(CP) -f ./etc/pap-secrets $(ROMFS_DIR)/etc_ro/
|
| 35 | $(CP) -f ./etc/chap-secrets $(ROMFS_DIR)/etc_ro/
|
| 36 | endif
|
| 37 | ifeq ($(USE_FOTA),yes)
|
| 38 | mkdir -p $(ROMFS_DIR)/recovery/sbin
|
| 39 | $(CP) -f ./scripts/to_mnt_ubifs.sh $(ROMFS_DIR)/recovery/sbin/
|
| 40 | endif
|
| 41 | wifi:
|
| 42 | @echo "copying wifi script"
|
| 43 |
|
| 44 | ifeq ($(CONFIG_WIFI_MODULE), realtek)
|
| 45 | @echo "copying wifi realtek script"
|
| 46 | mkdir -p $(ROMFS_DIR)/etc_ro/
|
| 47 | $(CP) -rf ./wifi/* $(ROMFS_DIR)/etc_ro/
|
| 48 | ifeq ($(CONFIG_WIFI_RTL_WPA2),yes)
|
| 49 | chmod +x ./wifi_script/realtek_wpa2/*
|
| 50 | $(CP) -rf ./wifi_script/realtek_wpa2/* $(ROMFS_DIR)/sbin/
|
| 51 | else
|
| 52 | chmod +x ./wifi_script/realtek/*
|
| 53 | $(CP) -rf ./wifi_script/realtek/* $(ROMFS_DIR)/sbin/
|
| 54 | endif
|
| 55 | else
|
| 56 | chmod +x ./wifi_script/realtek/*
|
| 57 | ifeq ($(CONFIG_MIN_8M_VERSION), n)
|
| 58 | $(CP) -rf ./wifi_script/realtek/zte_qrcode_create.sh $(ROMFS_DIR)/sbin/
|
| 59 | else
|
| 60 | ifeq ($(CONFIG_MMI_LCD),yes)
|
| 61 | $(CP) -rf ./wifi_script/realtek/zte_qrcode_create.sh $(ROMFS_DIR)/sbin/
|
| 62 | endif
|
| 63 | endif
|
| 64 | endif
|
| 65 |
|
| 66 |
|