airoha: an7583: drop bootloader artifacts entry and add default pkg
authorChristian Marangi <[email protected]>
Thu, 23 Oct 2025 13:42:21 +0000 (15:42 +0200)
committerChristian Marangi <[email protected]>
Thu, 23 Oct 2025 13:42:21 +0000 (15:42 +0200)
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 <[email protected]>
target/linux/airoha/image/an7583.mk

index c8747a7913e3edc0af6e528557c4bd14c4cea0f0..bbc78c65ae4a9291fc1b54e713be535d012f30aa 100644 (file)
@@ -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