[openwrt/openwrt] siflower: add per-subtarget image makefile
LEDE Commits
lede-commits at lists.infradead.org
Tue Feb 4 19:09:01 PST 2025
981213 pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/bbde170ec69917a26822b8c846037043ddfe2876
commit bbde170ec69917a26822b8c846037043ddfe2876
Author: Chuanhong Guo <gch981213 at gmail.com>
AuthorDate: Sat Sep 14 11:28:52 2024 +0800
siflower: add per-subtarget image makefile
Move SF19A2890 images into a separated .mk in preparation for
more subtargets.
Link: https://github.com/openwrt/openwrt/pull/17115
Signed-off-by: Chuanhong Guo <gch981213 at gmail.com>
---
target/linux/siflower/image/Makefile | 23 +---------------------
.../siflower/image/{Makefile => sf19a2890.mk} | 6 ------
2 files changed, 1 insertion(+), 28 deletions(-)
diff --git a/target/linux/siflower/image/Makefile b/target/linux/siflower/image/Makefile
index e86927dd78..394fcb6f0e 100644
--- a/target/linux/siflower/image/Makefile
+++ b/target/linux/siflower/image/Makefile
@@ -2,27 +2,6 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
-KERNEL_LOADADDR := 0x80100000
-
-define Device/Default
- PROFILES := Default
- BLOCKSIZE := 64k
- FILESYSTEMS := squashfs
- DEVICE_DTS_DIR := ../dts
- KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
- KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
- IMAGES := sysupgrade.bin
- IMAGE/sysupgrade.bin = append-kernel | pad-to $$$$(BLOCKSIZE) | \
- append-rootfs | pad-rootfs | append-metadata
-endef
-
-define Device/siflower_sf19a2890-evb
- DEVICE_VENDOR := Siflower
- DEVICE_MODEL := SF19A2890 EVB
- BOARD_NAME := siflower,sf19a2890-evb
- DEVICE_DTS := sf19a2890_evb
- DEVICE_PACKAGES := kmod-switch-rtl8367b swconfig
-endef
-TARGET_DEVICES += siflower_sf19a2890-evb
+include $(SUBTARGET).mk
$(eval $(call BuildImage))
diff --git a/target/linux/siflower/image/Makefile b/target/linux/siflower/image/sf19a2890.mk
similarity index 88%
copy from target/linux/siflower/image/Makefile
copy to target/linux/siflower/image/sf19a2890.mk
index e86927dd78..289fd346f6 100644
--- a/target/linux/siflower/image/Makefile
+++ b/target/linux/siflower/image/sf19a2890.mk
@@ -1,7 +1,3 @@
-
-include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/image.mk
-
KERNEL_LOADADDR := 0x80100000
define Device/Default
@@ -24,5 +20,3 @@ define Device/siflower_sf19a2890-evb
DEVICE_PACKAGES := kmod-switch-rtl8367b swconfig
endef
TARGET_DEVICES += siflower_sf19a2890-evb
-
-$(eval $(call BuildImage))
More information about the lede-commits
mailing list