ath79: split base-files into subtargets
While most of the target's contents are split into subtargets, the
base-files are maintained for the target as a whole.
However, OpenWrt already implements a mechanism that will use (and
even prefer) files in the subtargets' directories. This can be
exploited to make several scripts subtarget-specific and thus save
some space (especially helpful for the tiny devices).
The only script remaining in parent base-files is
/etc/hotplug.d/ieee80211/00-wifi-migration, everything else is
moved/split.
Note that this will increase overall code lines, but reduce code
per subtarget.
base-files ipk size reduction:
master (generic) 49135 B
split (generic) 48533 B (- 0.6 kiB)
split (tiny) 43337 B (- 5.7 kiB)
split (nand) 44423 B (- 4.6 kiB)
Tested on TL-WR1043ND v4 (generic) and TL-WR841N v12 (tiny).
Signed-off-by:
Adrian Schmutzler <freifunk@adrianschmutzler.de>
Showing
- target/linux/ath79/generic/base-files/etc/board.d/01_leds 0 additions, 59 deletionstarget/linux/ath79/generic/base-files/etc/board.d/01_leds
- target/linux/ath79/generic/base-files/etc/board.d/02_network 1 addition, 49 deletionstarget/linux/ath79/generic/base-files/etc/board.d/02_network
- target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches 0 additions, 0 deletions...nux/ath79/generic/base-files/etc/board.d/03_gpio_switches
- target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom 1 addition, 18 deletions...generic/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
- target/linux/ath79/generic/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 0 additions, 0 deletions...neric/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
- target/linux/ath79/generic/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac 0 additions, 0 deletions...eneric/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
- target/linux/ath79/generic/base-files/etc/init.d/bootcount 0 additions, 0 deletionstarget/linux/ath79/generic/base-files/etc/init.d/bootcount
- target/linux/ath79/generic/base-files/etc/uci-defaults/04_led_migration 0 additions, 0 deletions...th79/generic/base-files/etc/uci-defaults/04_led_migration
- target/linux/ath79/generic/base-files/etc/uci-defaults/09_fix-checksum 0 additions, 0 deletions...ath79/generic/base-files/etc/uci-defaults/09_fix-checksum
- target/linux/ath79/generic/base-files/lib/functions/k2t.sh 0 additions, 0 deletionstarget/linux/ath79/generic/base-files/lib/functions/k2t.sh
- target/linux/ath79/generic/base-files/lib/upgrade/platform.sh 0 additions, 0 deletions...et/linux/ath79/generic/base-files/lib/upgrade/platform.sh
- target/linux/ath79/nand/base-files/etc/board.d/01_leds 18 additions, 0 deletionstarget/linux/ath79/nand/base-files/etc/board.d/01_leds
- target/linux/ath79/nand/base-files/etc/board.d/02_network 35 additions, 0 deletionstarget/linux/ath79/nand/base-files/etc/board.d/02_network
- target/linux/ath79/nand/base-files/lib/upgrade/platform.sh 20 additions, 0 deletionstarget/linux/ath79/nand/base-files/lib/upgrade/platform.sh
- target/linux/ath79/tiny/base-files/etc/board.d/01_leds 85 additions, 0 deletionstarget/linux/ath79/tiny/base-files/etc/board.d/01_leds
- target/linux/ath79/tiny/base-files/etc/board.d/02_network 96 additions, 0 deletionstarget/linux/ath79/tiny/base-files/etc/board.d/02_network
- target/linux/ath79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom 38 additions, 0 deletions...79/tiny/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
- target/linux/ath79/tiny/base-files/lib/upgrade/platform.sh 20 additions, 0 deletionstarget/linux/ath79/tiny/base-files/lib/upgrade/platform.sh
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
Please register or sign in to comment