aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/image/common-netgear.mk
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-08-22 14:34:45 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-09-21 22:17:39 +0200
commitd1e3f32dcf63d19dcfe5cb4a1d8437e7a55cb96e (patch)
treea2614da6820e57eb436289d821f7f9a06fa0ee86 /target/linux/ath79/image/common-netgear.mk
parent4fc0a61ed3da96330d30703a2a039a6a06dc0b2f (diff)
downloadupstream-d1e3f32dcf63d19dcfe5cb4a1d8437e7a55cb96e.tar.gz
upstream-d1e3f32dcf63d19dcfe5cb4a1d8437e7a55cb96e.tar.bz2
upstream-d1e3f32dcf63d19dcfe5cb4a1d8437e7a55cb96e.zip
ath79: sort device definitions in image/*
This applies alphabetic sorting to devices in image/* files. For certain cases, this patch deviates from strict sorting, e.g. to ensure that v10 comes after v9. While at it, fix an indent and remove some useless empty lines. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/image/common-netgear.mk')
-rw-r--r--target/linux/ath79/image/common-netgear.mk20
1 files changed, 10 insertions, 10 deletions
diff --git a/target/linux/ath79/image/common-netgear.mk b/target/linux/ath79/image/common-netgear.mk
index c722b82d27..8311222a91 100644
--- a/target/linux/ath79/image/common-netgear.mk
+++ b/target/linux/ath79/image/common-netgear.mk
@@ -1,5 +1,15 @@
DEVICE_VARS += NETGEAR_KERNEL_MAGIC NETGEAR_BOARD_ID NETGEAR_HW_ID
+define Build/netgear-rootfs
+ mkimage \
+ -A mips -O linux -T filesystem -C none \
+ -M $(NETGEAR_KERNEL_MAGIC) \
+ -n '$(VERSION_DIST) filesystem' \
+ -d $(IMAGE_ROOTFS) $@.fs
+ cat $@.fs >> $@
+ rm -rf $@.fs
+endef
+
define Build/netgear-squashfs
rm -rf $@.fs $@.squashfs
mkdir -p $@.fs/image
@@ -19,16 +29,6 @@ define Build/netgear-squashfs
rm -rf $@.squashfs $@.fs
endef
-define Build/netgear-rootfs
- mkimage \
- -A mips -O linux -T filesystem -C none \
- -M $(NETGEAR_KERNEL_MAGIC) \
- -n '$(VERSION_DIST) filesystem' \
- -d $(IMAGE_ROOTFS) $@.fs
- cat $@.fs >> $@
- rm -rf $@.fs
-endef
-
define Build/netgear-uImage
$(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))
endef