summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi2025-10-23 13:42:21 +0000
committerChristian Marangi2025-11-10 16:54:10 +0000
commited8ba06cedeaa70108e2c6a8060374d0c15056ba (patch)
tree2467b70d50cb662f5cffcfa271b56aa1de716dc3
parent89cee1bf3f72336b6137931118c600a6b4947325 (diff)
downloadopenwrt-ed8ba06cedeaa70108e2c6a8060374d0c15056ba.tar.gz
airoha: an7583: drop bootloader artifacts entry and add default pkg
Fix the current image Makefile for Airoha AN7583 by dropping the artifacts entry for bootloader and add default PKG for the PHY mounted on the RFB boards. The artifacts for the bootloader will be readded later once ATF-A support will be pushed mainline. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit a7964f0893f27e4c47491f9d76748d800216f49d)
-rw-r--r--target/linux/airoha/image/an7583.mk32
1 files changed, 2 insertions, 30 deletions
diff --git a/target/linux/airoha/image/an7583.mk b/target/linux/airoha/image/an7583.mk
index c8747a7913..bbc78c65ae 100644
--- a/target/linux/airoha/image/an7583.mk
+++ b/target/linux/airoha/image/an7583.mk
@@ -1,23 +1,3 @@
-define Build/an7583-bl2-bl31-uboot
- head -c $$((0x800)) /dev/zero > $@
- cat $(STAGING_DIR_IMAGE)/an7583_$1-bl2.fip >> $@
- dd if=$(STAGING_DIR_IMAGE)/an7583_$1-bl31-uboot.img of=$@ bs=1 seek=$$((0x20000)) conv=notrunc
-endef
-
-define Build/an7583-emmc-bl2-bl31-uboot
- head -c $$((0x800)) /dev/zero > $@
- cat $(STAGING_DIR_IMAGE)/an7583_$1-bl2.fip >> $@
- dd if=$(STAGING_DIR_IMAGE)/an7583_$1-bl31-u-boot.fip of=$@ bs=1 seek=$$((0x20000)) conv=notrunc
-endef
-
-define Build/an7583-preloader
- cat $(STAGING_DIR_IMAGE)/an7583_$1-bl2.fip >> $@
-endef
-
-define Build/an7583-bl31-uboot
- cat $(STAGING_DIR_IMAGE)/an7583_$1-bl31-u-boot.fip >> $@
-endef
-
define Device/FitImageLzma
KERNEL_SUFFIX := -uImage.itb
KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb
@@ -28,15 +8,11 @@ define Device/airoha_an7583-evb
$(call Device/FitImageLzma)
DEVICE_VENDOR := Airoha
DEVICE_MODEL := AN7583 Evaluation Board (SNAND)
- DEVICE_PACKAGES := kmod-leds-pwm kmod-input-gpio-keys-polled
+ DEVICE_PACKAGES := kmod-phy-aeonsemi-as21xxx kmod-leds-pwm kmod-pwm-airoha kmod-input-gpio-keys-polled
DEVICE_DTS := an7583-evb
DEVICE_DTS_CONFIG := config@1
KERNEL_LOADADDR := 0x80088000
IMAGE/sysupgrade.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs | append-metadata
- ARTIFACT/bl2-bl31-uboot.bin := an7583-bl2-bl31-uboot rfb
- ARTIFACT/preloader.bin := an7583-preloader rfb
- ARTIFACT/bl31-uboot.fip := an7583-bl31-uboot rfb
- ARTIFACTS := bl2-bl31-uboot.bin preloader.bin bl31-uboot.fip
endef
TARGET_DEVICES += airoha_an7583-evb
@@ -44,10 +20,6 @@ define Device/airoha_an7583-evb-emmc
DEVICE_VENDOR := Airoha
DEVICE_MODEL := AN7583 Evaluation Board (EMMC)
DEVICE_DTS := an7583-evb-emmc
- DEVICE_PACKAGES := kmod-i2c-an7581
- ARTIFACT/preloader.bin := an7583-preloader rfb
- ARTIFACT/bl31-uboot.fip := an7583-bl31-uboot rfb
- ARTIFACT/bl2-bl31-uboot.bin := an7583-emmc-bl2-bl31-uboot rfb
- ARTIFACTS := bl2-bl31-uboot.bin preloader.bin bl31-uboot.fip
+ DEVICE_PACKAGES := kmod-phy-airoha-en8811h kmod-i2c-an7581
endef
TARGET_DEVICES += airoha_an7583-evb-emmc