From bb39fea11aae2888e6a0129055de21995da92073 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sun, 7 Jun 2020 13:11:15 +0200 Subject: treewide: simplify inclusion of subtarget image files Many target use a repetitive if-include scheme for their subtarget image files, though their names are consistent with the subtarget names. This patch removes these redundant conditions and just uses the variable for the include where the target setup allows it. For sunxi, this includes a trivial rename of the subtarget image Makefiles. Signed-off-by: Adrian Schmutzler --- target/linux/at91/image/Makefile | 7 +- target/linux/ath79/image/Makefile | 20 ++-- target/linux/layerscape/image/Makefile | 8 +- target/linux/mvebu/image/Makefile | 12 +- target/linux/oxnas/image/Makefile | 8 +- target/linux/rockchip/image/Makefile | 4 +- target/linux/sunxi/image/Makefile | 12 +- target/linux/sunxi/image/cortex-a53.mk | 86 --------------- target/linux/sunxi/image/cortex-a7.mk | 195 --------------------------------- target/linux/sunxi/image/cortex-a8.mk | 58 ---------- target/linux/sunxi/image/cortexa53.mk | 86 +++++++++++++++ target/linux/sunxi/image/cortexa7.mk | 195 +++++++++++++++++++++++++++++++++ target/linux/sunxi/image/cortexa8.mk | 58 ++++++++++ target/linux/x86/image/Makefile | 16 +-- 14 files changed, 354 insertions(+), 411 deletions(-) delete mode 100644 target/linux/sunxi/image/cortex-a53.mk delete mode 100644 target/linux/sunxi/image/cortex-a7.mk delete mode 100644 target/linux/sunxi/image/cortex-a8.mk create mode 100644 target/linux/sunxi/image/cortexa53.mk create mode 100644 target/linux/sunxi/image/cortexa7.mk create mode 100644 target/linux/sunxi/image/cortexa8.mk (limited to 'target') diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index adb7c6d0ba..ff801dae86 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -13,12 +13,7 @@ define Build/at91-install-zImage $(CP) $(KDIR)/zImage $@ endef -ifeq ($(SUBTARGET),sam9x) -include ./sam9x.mk -endif -ifeq ($(SUBTARGET),sama5) -include ./sama5.mk -endif +include $(SUBTARGET).mk AT91_SD_BOOT_PARTSIZE:=64 FAT32_BLOCK_SIZE:=1024 diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile index 529baf8f57..a555cfc6d5 100644 --- a/target/linux/ath79/image/Makefile +++ b/target/linux/ath79/image/Makefile @@ -68,20 +68,16 @@ define Device/Default append-rootfs | pad-rootfs | append-metadata | check-size endef +include $(SUBTARGET).mk + ifeq ($(SUBTARGET),generic) -include ./generic.mk -include ./generic-tp-link.mk -include ./generic-ubnt.mk -endif -ifeq ($(SUBTARGET),mikrotik) -include ./mikrotik.mk -endif -ifeq ($(SUBTARGET),nand) -include ./nand.mk +include generic-tp-link.mk +include generic-ubnt.mk endif + ifeq ($(SUBTARGET),tiny) -include ./tiny.mk -include ./tiny-netgear.mk -include ./tiny-tp-link.mk +include tiny-netgear.mk +include tiny-tp-link.mk endif + $(eval $(call BuildImage)) diff --git a/target/linux/layerscape/image/Makefile b/target/linux/layerscape/image/Makefile index bc65748853..f5a5ad9980 100644 --- a/target/linux/layerscape/image/Makefile +++ b/target/linux/layerscape/image/Makefile @@ -43,12 +43,6 @@ define Build/traverse-fit @mv -f $@.new $@ endef -ifeq ($(SUBTARGET),armv8_64b) -include armv8_64b.mk -endif - -ifeq ($(SUBTARGET),armv7) -include armv7.mk -endif +include $(SUBTARGET).mk $(eval $(call BuildImage)) diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile index 3a47878069..cbf34c1bc8 100644 --- a/target/linux/mvebu/image/Makefile +++ b/target/linux/mvebu/image/Makefile @@ -138,16 +138,6 @@ define Device/NAND-512K PAGESIZE := 4096 endef -ifeq ($(SUBTARGET),cortexa9) -include cortexa9.mk -endif - -ifeq ($(SUBTARGET),cortexa53) -include cortexa53.mk -endif - -ifeq ($(SUBTARGET),cortexa72) -include cortexa72.mk -endif +include $(SUBTARGET).mk $(eval $(call BuildImage)) diff --git a/target/linux/oxnas/image/Makefile b/target/linux/oxnas/image/Makefile index 644c2b8795..abf83caa1a 100644 --- a/target/linux/oxnas/image/Makefile +++ b/target/linux/oxnas/image/Makefile @@ -4,12 +4,6 @@ include $(INCLUDE_DIR)/image.mk VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage -ifeq ($(SUBTARGET),ox810se) -include ox810se.mk -endif - -ifeq ($(SUBTARGET),ox820) -include ox820.mk -endif +include $(SUBTARGET).mk $(eval $(call BuildImage)) diff --git a/target/linux/rockchip/image/Makefile b/target/linux/rockchip/image/Makefile index 5f605ebfe5..22854d9d02 100644 --- a/target/linux/rockchip/image/Makefile +++ b/target/linux/rockchip/image/Makefile @@ -56,8 +56,6 @@ define Device/Default DEVICE_DTS = rockchip/$$(SOC)-$(lastword $(subst _, ,$(1))) endef -ifeq ($(SUBTARGET),armv8) - include armv8.mk -endif +include $(SUBTARGET).mk $(eval $(call BuildImage)) diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile index 1b98849a50..01e9742b46 100644 --- a/target/linux/sunxi/image/Makefile +++ b/target/linux/sunxi/image/Makefile @@ -42,16 +42,6 @@ define Device/Default SUNXI_DTS = $$(SUNXI_DTS_DIR)$$(SOC)-$(lastword $(subst _, ,$(1))) endef -ifeq ($(SUBTARGET),cortexa7) -include cortex-a7.mk -endif - -ifeq ($(SUBTARGET),cortexa8) -include cortex-a8.mk -endif - -ifeq ($(SUBTARGET),cortexa53) -include cortex-a53.mk -endif +include $(SUBTARGET).mk $(eval $(call BuildImage)) diff --git a/target/linux/sunxi/image/cortex-a53.mk b/target/linux/sunxi/image/cortex-a53.mk deleted file mode 100644 index 7a70de4dff..0000000000 --- a/target/linux/sunxi/image/cortex-a53.mk +++ /dev/null @@ -1,86 +0,0 @@ -# -# Copyright (C) 2013-2016 OpenWrt.org -# Copyright (C) 2016 Yousong Zhou -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -define Device/sun50i - SUNXI_DTS_DIR := allwinner/ - KERNEL_NAME := Image - KERNEL := kernel-bin -endef - -define Device/sun50i-h5 - SOC := sun50i-h5 - $(Device/sun50i) -endef - -define Device/sun50i-a64 - SOC := sun50i-a64 - $(Device/sun50i) -endef - -define Device/friendlyarm_nanopi-neo-plus2 - DEVICE_VENDOR := FriendlyARM - DEVICE_MODEL := NanoPi NEO Plus2 - SUPPORTED_DEVICES:=nanopi-neo-plus2 - $(Device/sun50i-h5) -endef -TARGET_DEVICES += friendlyarm_nanopi-neo-plus2 - -define Device/friendlyarm_nanopi-neo2 - DEVICE_VENDOR := FriendlyARM - DEVICE_MODEL := NanoPi NEO2 - SUPPORTED_DEVICES:=nanopi-neo2 - $(Device/sun50i-h5) -endef -TARGET_DEVICES += friendlyarm_nanopi-neo2 - -define Device/olimex_a64-olinuxino - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A64-Olinuxino - DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bs-firmware - $(Device/sun50i-a64) - SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-olinuxino -endef -TARGET_DEVICES += olimex_a64-olinuxino - -define Device/olimex_a64-olinuxino-emmc - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A64-Olinuxino - DEVICE_VARIANT := eMMC - DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bs-firmware - $(Device/sun50i-a64) - SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-olinuxino-emmc -endef -TARGET_DEVICES += olimex_a64-olinuxino-emmc - -define Device/pine64_pine64-plus - DEVICE_VENDOR := Pine64 - DEVICE_MODEL := Pine64+ - $(Device/sun50i-a64) -endef -TARGET_DEVICES += pine64_pine64-plus - -define Device/pine64_sopine-baseboard - DEVICE_VENDOR := Pine64 - DEVICE_MODEL := SoPine - $(Device/sun50i-a64) -endef -TARGET_DEVICES += pine64_sopine-baseboard - -define Device/xunlong_orangepi-pc2 - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi PC 2 - $(Device/sun50i-h5) -endef -TARGET_DEVICES += xunlong_orangepi-pc2 - -define Device/xunlong_orangepi-zero-plus - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi Zero Plus - $(Device/sun50i-h5) -endef -TARGET_DEVICES += xunlong_orangepi-zero-plus diff --git a/target/linux/sunxi/image/cortex-a7.mk b/target/linux/sunxi/image/cortex-a7.mk deleted file mode 100644 index 8fa648176f..0000000000 --- a/target/linux/sunxi/image/cortex-a7.mk +++ /dev/null @@ -1,195 +0,0 @@ -# -# Copyright (C) 2013-2019 OpenWrt.org -# Copyright (C) 2016 Yousong Zhou -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -define Device/cubietech_cubieboard2 - DEVICE_VENDOR := Cubietech - DEVICE_MODEL := Cubieboard2 - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi - SOC := sun7i-a20 -endef -TARGET_DEVICES += cubietech_cubieboard2 - -define Device/cubietech_cubietruck - DEVICE_VENDOR := Cubietech - DEVICE_MODEL := Cubietruck - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-brcmfmac - SOC := sun7i-a20 -endef -TARGET_DEVICES += cubietech_cubietruck - -define Device/friendlyarm_nanopi-m1-plus - DEVICE_VENDOR := FriendlyARM - DEVICE_MODEL := NanoPi M1 Plus - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-leds-gpio kmod-ledtrig-heartbeat \ - kmod-brcmfmac brcmfmac-firmware-43430-sdio wpad-basic - SOC := sun8i-h3 -endef -TARGET_DEVICES += friendlyarm_nanopi-m1-plus - -define Device/friendlyarm_nanopi-neo - DEVICE_VENDOR := FriendlyARM - DEVICE_MODEL := NanoPi NEO - SOC := sun8i-h3 -endef -TARGET_DEVICES += friendlyarm_nanopi-neo - -define Device/friendlyarm_nanopi-neo-air - DEVICE_VENDOR := FriendlyARM - DEVICE_MODEL := NanoPi NEO Air - DEVICE_PACKAGES := kmod-rtc-sunxi kmod-leds-gpio kmod-ledtrig-heartbeat \ - kmod-brcmfmac brcmfmac-firmware-43430-sdio wpad-basic - SOC := sun8i-h3 -endef -TARGET_DEVICES += friendlyarm_nanopi-neo-air - -define Device/lamobo_lamobo-r1 - DEVICE_VENDOR := Lamobo - DEVICE_MODEL := Lamobo R1 - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtl8192cu swconfig wpad-basic - SOC := sun7i-a20 -endef -TARGET_DEVICES += lamobo_lamobo-r1 - -define Device/lemaker_bananapi - DEVICE_VENDOR := LeMaker - DEVICE_MODEL := Banana Pi - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi - SOC := sun7i-a20 -endef -TARGET_DEVICES += lemaker_bananapi - -define Device/lemaker_bananapi-m2-ultra - DEVICE_VENDOR := LeMaker - DEVICE_MODEL := Banana Pi M2 Ultra - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi - SOC := sun8i-r40 -endef -TARGET_DEVICES += lemaker_bananapi-m2-ultra - -define Device/lemaker_bananapro - DEVICE_VENDOR := LeMaker - DEVICE_MODEL := Banana Pro - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi kmod-brcmfmac - SOC := sun7i-a20 -endef -TARGET_DEVICES += lemaker_bananapro - -define Device/linksprite_pcduino3 - DEVICE_VENDOR := LinkSprite - DEVICE_MODEL := pcDuino3 - DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-ata-sunxi kmod-rtl8xxxu \ - rtl8188eu-firmware - SOC := sun7i-a20 -endef -TARGET_DEVICES += linksprite_pcduino3 - -define Device/mele_m9 - DEVICE_VENDOR := Mele - DEVICE_MODEL := M9 - DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-rtl8192cu - SOC := sun6i-a31 -endef -TARGET_DEVICES += mele_m9 - -define Device/olimex_a20-olinuxino-lime - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A20-OLinuXino-LIME - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi - SOC := sun7i -endef -TARGET_DEVICES += olimex_a20-olinuxino-lime - -define Device/olimex_a20-olinuxino-lime2 - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A20-OLinuXino-LIME2 - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid - SOC := sun7i -endef -TARGET_DEVICES += olimex_a20-olinuxino-lime2 - -define Device/olimex_a20-olinuxino-lime2-emmc - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A20-OLinuXino-LIME2 - DEVICE_VARIANT := eMMC - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid - SOC := sun7i -endef -TARGET_DEVICES += olimex_a20-olinuxino-lime2-emmc - -define Device/olimex_a20-olinuxino-micro - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A20-OLinuXino-MICRO - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi - SOC := sun7i -endef -TARGET_DEVICES += olimex_a20-olinuxino-micro - -define Device/sinovoip_bananapi-m2-plus - DEVICE_VENDOR := Sinovoip - DEVICE_MODEL := Banana Pi M2+ - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-leds-gpio kmod-ledtrig-heartbeat \ - kmod-brcmfmac brcmfmac-firmware-43430a0-sdio wpad-basic - SOC := sun8i-h3 -endef -TARGET_DEVICES += sinovoip_bananapi-m2-plus - -define Device/xunlong_orangepi-one - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi One - DEVICE_PACKAGES:=kmod-rtc-sunxi - SOC := sun8i-h3 -endef -TARGET_DEVICES += xunlong_orangepi-one - -define Device/xunlong_orangepi-pc - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi PC - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-gpio-button-hotplug - SOC := sun8i-h3 -endef -TARGET_DEVICES += xunlong_orangepi-pc - -define Device/xunlong_orangepi-pc-plus - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi PC Plus - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-gpio-button-hotplug - SOC := sun8i-h3 -endef -TARGET_DEVICES += xunlong_orangepi-pc-plus - -define Device/xunlong_orangepi-plus - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi Plus - DEVICE_PACKAGES:=kmod-rtc-sunxi - SOC := sun8i-h3 -endef -TARGET_DEVICES += xunlong_orangepi-plus - -define Device/xunlong_orangepi-r1 - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi R1 - DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-usb-net kmod-usb-net-rtl8152 - SOC := sun8i-h2-plus -endef -TARGET_DEVICES += xunlong_orangepi-r1 - -define Device/xunlong_orangepi-zero - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi Zero - DEVICE_PACKAGES:=kmod-rtc-sunxi - SOC := sun8i-h2-plus -endef -TARGET_DEVICES += xunlong_orangepi-zero - -define Device/xunlong_orangepi-2 - DEVICE_VENDOR := Xunlong - DEVICE_MODEL := Orange Pi 2 - DEVICE_PACKAGES:=kmod-rtc-sunxi - SOC := sun8i-h3 -endef -TARGET_DEVICES += xunlong_orangepi-2 diff --git a/target/linux/sunxi/image/cortex-a8.mk b/target/linux/sunxi/image/cortex-a8.mk deleted file mode 100644 index 643b3d4b1e..0000000000 --- a/target/linux/sunxi/image/cortex-a8.mk +++ /dev/null @@ -1,58 +0,0 @@ -# -# Copyright (C) 2013-2016 OpenWrt.org -# Copyright (C) 2016 Yousong Zhou -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -define Device/cubietech_a10-cubieboard - DEVICE_VENDOR := Cubietech - DEVICE_MODEL := Cubieboard - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi - SOC := sun4i -endef -TARGET_DEVICES += cubietech_a10-cubieboard - -define Device/linksprite_a10-pcduino - DEVICE_VENDOR := LinkSprite - DEVICE_MODEL := pcDuino - DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-rtl8192cu - SOC := sun4i -endef -TARGET_DEVICES += linksprite_a10-pcduino - -define Device/marsboard_a10-marsboard - DEVICE_VENDOR := HAOYU Electronics - DEVICE_MODEL := MarsBoard A10 - DEVICE_PACKAGES:=mod-ata-core kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi \ - sound-soc-sunxi - SOC := sun4i -endef -TARGET_DEVICES += marsboard_a10-marsboard - -define Device/olimex_a10-olinuxino-lime - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A10-OLinuXino-LIME - DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi - SOC := sun4i -endef -TARGET_DEVICES += olimex_a10-olinuxino-lime - -define Device/olimex_a13-olimex-som - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A13-SOM - DEVICE_PACKAGES:=kmod-rtl8192cu - SUPPORTED_DEVICES:=olimex,a13-olinuxino - SOC := sun5i-a13 - SUNXI_DTS := sun5i-a13-olinuxino -endef -TARGET_DEVICES += olimex_a13-olimex-som - -define Device/olimex_a13-olinuxino - DEVICE_VENDOR := Olimex - DEVICE_MODEL := A13-OLinuXino - DEVICE_PACKAGES:=kmod-rtl8192cu - SOC := sun5i -endef -TARGET_DEVICES += olimex_a13-olinuxino diff --git a/target/linux/sunxi/image/cortexa53.mk b/target/linux/sunxi/image/cortexa53.mk new file mode 100644 index 0000000000..7a70de4dff --- /dev/null +++ b/target/linux/sunxi/image/cortexa53.mk @@ -0,0 +1,86 @@ +# +# Copyright (C) 2013-2016 OpenWrt.org +# Copyright (C) 2016 Yousong Zhou +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Device/sun50i + SUNXI_DTS_DIR := allwinner/ + KERNEL_NAME := Image + KERNEL := kernel-bin +endef + +define Device/sun50i-h5 + SOC := sun50i-h5 + $(Device/sun50i) +endef + +define Device/sun50i-a64 + SOC := sun50i-a64 + $(Device/sun50i) +endef + +define Device/friendlyarm_nanopi-neo-plus2 + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPi NEO Plus2 + SUPPORTED_DEVICES:=nanopi-neo-plus2 + $(Device/sun50i-h5) +endef +TARGET_DEVICES += friendlyarm_nanopi-neo-plus2 + +define Device/friendlyarm_nanopi-neo2 + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPi NEO2 + SUPPORTED_DEVICES:=nanopi-neo2 + $(Device/sun50i-h5) +endef +TARGET_DEVICES += friendlyarm_nanopi-neo2 + +define Device/olimex_a64-olinuxino + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A64-Olinuxino + DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bs-firmware + $(Device/sun50i-a64) + SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-olinuxino +endef +TARGET_DEVICES += olimex_a64-olinuxino + +define Device/olimex_a64-olinuxino-emmc + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A64-Olinuxino + DEVICE_VARIANT := eMMC + DEVICE_PACKAGES := kmod-rtl8723bs rtl8723bs-firmware + $(Device/sun50i-a64) + SUNXI_DTS := $$(SUNXI_DTS_DIR)$$(SOC)-olinuxino-emmc +endef +TARGET_DEVICES += olimex_a64-olinuxino-emmc + +define Device/pine64_pine64-plus + DEVICE_VENDOR := Pine64 + DEVICE_MODEL := Pine64+ + $(Device/sun50i-a64) +endef +TARGET_DEVICES += pine64_pine64-plus + +define Device/pine64_sopine-baseboard + DEVICE_VENDOR := Pine64 + DEVICE_MODEL := SoPine + $(Device/sun50i-a64) +endef +TARGET_DEVICES += pine64_sopine-baseboard + +define Device/xunlong_orangepi-pc2 + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi PC 2 + $(Device/sun50i-h5) +endef +TARGET_DEVICES += xunlong_orangepi-pc2 + +define Device/xunlong_orangepi-zero-plus + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi Zero Plus + $(Device/sun50i-h5) +endef +TARGET_DEVICES += xunlong_orangepi-zero-plus diff --git a/target/linux/sunxi/image/cortexa7.mk b/target/linux/sunxi/image/cortexa7.mk new file mode 100644 index 0000000000..8fa648176f --- /dev/null +++ b/target/linux/sunxi/image/cortexa7.mk @@ -0,0 +1,195 @@ +# +# Copyright (C) 2013-2019 OpenWrt.org +# Copyright (C) 2016 Yousong Zhou +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Device/cubietech_cubieboard2 + DEVICE_VENDOR := Cubietech + DEVICE_MODEL := Cubieboard2 + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi + SOC := sun7i-a20 +endef +TARGET_DEVICES += cubietech_cubieboard2 + +define Device/cubietech_cubietruck + DEVICE_VENDOR := Cubietech + DEVICE_MODEL := Cubietruck + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-brcmfmac + SOC := sun7i-a20 +endef +TARGET_DEVICES += cubietech_cubietruck + +define Device/friendlyarm_nanopi-m1-plus + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPi M1 Plus + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-leds-gpio kmod-ledtrig-heartbeat \ + kmod-brcmfmac brcmfmac-firmware-43430-sdio wpad-basic + SOC := sun8i-h3 +endef +TARGET_DEVICES += friendlyarm_nanopi-m1-plus + +define Device/friendlyarm_nanopi-neo + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPi NEO + SOC := sun8i-h3 +endef +TARGET_DEVICES += friendlyarm_nanopi-neo + +define Device/friendlyarm_nanopi-neo-air + DEVICE_VENDOR := FriendlyARM + DEVICE_MODEL := NanoPi NEO Air + DEVICE_PACKAGES := kmod-rtc-sunxi kmod-leds-gpio kmod-ledtrig-heartbeat \ + kmod-brcmfmac brcmfmac-firmware-43430-sdio wpad-basic + SOC := sun8i-h3 +endef +TARGET_DEVICES += friendlyarm_nanopi-neo-air + +define Device/lamobo_lamobo-r1 + DEVICE_VENDOR := Lamobo + DEVICE_MODEL := Lamobo R1 + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtl8192cu swconfig wpad-basic + SOC := sun7i-a20 +endef +TARGET_DEVICES += lamobo_lamobo-r1 + +define Device/lemaker_bananapi + DEVICE_VENDOR := LeMaker + DEVICE_MODEL := Banana Pi + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi + SOC := sun7i-a20 +endef +TARGET_DEVICES += lemaker_bananapi + +define Device/lemaker_bananapi-m2-ultra + DEVICE_VENDOR := LeMaker + DEVICE_MODEL := Banana Pi M2 Ultra + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi + SOC := sun8i-r40 +endef +TARGET_DEVICES += lemaker_bananapi-m2-ultra + +define Device/lemaker_bananapro + DEVICE_VENDOR := LeMaker + DEVICE_MODEL := Banana Pro + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi kmod-brcmfmac + SOC := sun7i-a20 +endef +TARGET_DEVICES += lemaker_bananapro + +define Device/linksprite_pcduino3 + DEVICE_VENDOR := LinkSprite + DEVICE_MODEL := pcDuino3 + DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-ata-sunxi kmod-rtl8xxxu \ + rtl8188eu-firmware + SOC := sun7i-a20 +endef +TARGET_DEVICES += linksprite_pcduino3 + +define Device/mele_m9 + DEVICE_VENDOR := Mele + DEVICE_MODEL := M9 + DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-rtl8192cu + SOC := sun6i-a31 +endef +TARGET_DEVICES += mele_m9 + +define Device/olimex_a20-olinuxino-lime + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A20-OLinuXino-LIME + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi + SOC := sun7i +endef +TARGET_DEVICES += olimex_a20-olinuxino-lime + +define Device/olimex_a20-olinuxino-lime2 + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A20-OLinuXino-LIME2 + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid + SOC := sun7i +endef +TARGET_DEVICES += olimex_a20-olinuxino-lime2 + +define Device/olimex_a20-olinuxino-lime2-emmc + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A20-OLinuXino-LIME2 + DEVICE_VARIANT := eMMC + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-rtc-sunxi kmod-usb-hid + SOC := sun7i +endef +TARGET_DEVICES += olimex_a20-olinuxino-lime2-emmc + +define Device/olimex_a20-olinuxino-micro + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A20-OLinuXino-MICRO + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi + SOC := sun7i +endef +TARGET_DEVICES += olimex_a20-olinuxino-micro + +define Device/sinovoip_bananapi-m2-plus + DEVICE_VENDOR := Sinovoip + DEVICE_MODEL := Banana Pi M2+ + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-leds-gpio kmod-ledtrig-heartbeat \ + kmod-brcmfmac brcmfmac-firmware-43430a0-sdio wpad-basic + SOC := sun8i-h3 +endef +TARGET_DEVICES += sinovoip_bananapi-m2-plus + +define Device/xunlong_orangepi-one + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi One + DEVICE_PACKAGES:=kmod-rtc-sunxi + SOC := sun8i-h3 +endef +TARGET_DEVICES += xunlong_orangepi-one + +define Device/xunlong_orangepi-pc + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi PC + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-gpio-button-hotplug + SOC := sun8i-h3 +endef +TARGET_DEVICES += xunlong_orangepi-pc + +define Device/xunlong_orangepi-pc-plus + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi PC Plus + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-gpio-button-hotplug + SOC := sun8i-h3 +endef +TARGET_DEVICES += xunlong_orangepi-pc-plus + +define Device/xunlong_orangepi-plus + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi Plus + DEVICE_PACKAGES:=kmod-rtc-sunxi + SOC := sun8i-h3 +endef +TARGET_DEVICES += xunlong_orangepi-plus + +define Device/xunlong_orangepi-r1 + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi R1 + DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-usb-net kmod-usb-net-rtl8152 + SOC := sun8i-h2-plus +endef +TARGET_DEVICES += xunlong_orangepi-r1 + +define Device/xunlong_orangepi-zero + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi Zero + DEVICE_PACKAGES:=kmod-rtc-sunxi + SOC := sun8i-h2-plus +endef +TARGET_DEVICES += xunlong_orangepi-zero + +define Device/xunlong_orangepi-2 + DEVICE_VENDOR := Xunlong + DEVICE_MODEL := Orange Pi 2 + DEVICE_PACKAGES:=kmod-rtc-sunxi + SOC := sun8i-h3 +endef +TARGET_DEVICES += xunlong_orangepi-2 diff --git a/target/linux/sunxi/image/cortexa8.mk b/target/linux/sunxi/image/cortexa8.mk new file mode 100644 index 0000000000..643b3d4b1e --- /dev/null +++ b/target/linux/sunxi/image/cortexa8.mk @@ -0,0 +1,58 @@ +# +# Copyright (C) 2013-2016 OpenWrt.org +# Copyright (C) 2016 Yousong Zhou +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Device/cubietech_a10-cubieboard + DEVICE_VENDOR := Cubietech + DEVICE_MODEL := Cubieboard + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi + SOC := sun4i +endef +TARGET_DEVICES += cubietech_a10-cubieboard + +define Device/linksprite_a10-pcduino + DEVICE_VENDOR := LinkSprite + DEVICE_MODEL := pcDuino + DEVICE_PACKAGES:=kmod-sun4i-emac kmod-rtc-sunxi kmod-rtl8192cu + SOC := sun4i +endef +TARGET_DEVICES += linksprite_a10-pcduino + +define Device/marsboard_a10-marsboard + DEVICE_VENDOR := HAOYU Electronics + DEVICE_MODEL := MarsBoard A10 + DEVICE_PACKAGES:=mod-ata-core kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi \ + sound-soc-sunxi + SOC := sun4i +endef +TARGET_DEVICES += marsboard_a10-marsboard + +define Device/olimex_a10-olinuxino-lime + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A10-OLinuXino-LIME + DEVICE_PACKAGES:=kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi + SOC := sun4i +endef +TARGET_DEVICES += olimex_a10-olinuxino-lime + +define Device/olimex_a13-olimex-som + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A13-SOM + DEVICE_PACKAGES:=kmod-rtl8192cu + SUPPORTED_DEVICES:=olimex,a13-olinuxino + SOC := sun5i-a13 + SUNXI_DTS := sun5i-a13-olinuxino +endef +TARGET_DEVICES += olimex_a13-olimex-som + +define Device/olimex_a13-olinuxino + DEVICE_VENDOR := Olimex + DEVICE_MODEL := A13-OLinuXino + DEVICE_PACKAGES:=kmod-rtl8192cu + SOC := sun5i +endef +TARGET_DEVICES += olimex_a13-olinuxino diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile index 174c272a51..85c850c128 100644 --- a/target/linux/x86/image/Makefile +++ b/target/linux/x86/image/Makefile @@ -146,21 +146,7 @@ define Device/Default ARTIFACTS := $$(ARTIFACTS-y) endef -ifeq ($(SUBTARGET),64) - include 64.mk -endif - -ifeq ($(SUBTARGET),generic) - include generic.mk -endif - -ifeq ($(SUBTARGET),geode) - include geode.mk -endif - -ifeq ($(SUBTARGET),legacy) - include legacy.mk -endif +include $(SUBTARGET).mk $(eval $(call BuildImage)) -- cgit v1.2.3