mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-10 04:41:49 +00:00
qualcommax: move ipq807x support to subtarget
Now that qualcommax exists as a target and dependencies have been updated let move ipq807x support to subtarget of qualcommax. This is mostly copy/paste with the exception of having to update SSDK and NSS-DP to use CONFIG_TARGET_SUBTARGET. This is a preparation for later addition of IPQ60xx and IPQ50xx support. Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
f02f6aaa8d
commit
83314c13d0
@ -39,7 +39,7 @@ EXTRA_CFLAGS+= \
|
|||||||
|
|
||||||
NSS_DP_HAL_DIR:=$(PKG_BUILD_DIR)/hal
|
NSS_DP_HAL_DIR:=$(PKG_BUILD_DIR)/hal
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(LN) $(NSS_DP_HAL_DIR)/soc_ops/$(CONFIG_TARGET_BOARD)/nss_$(CONFIG_TARGET_BOARD).h \
|
$(LN) $(NSS_DP_HAL_DIR)/soc_ops/$(CONFIG_TARGET_SUBTARGET)/nss_$(CONFIG_TARGET_SUBTARGET).h \
|
||||||
$(PKG_BUILD_DIR)/exports/nss_dp_arch.h
|
$(PKG_BUILD_DIR)/exports/nss_dp_arch.h
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ define Build/Compile
|
|||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
M="$(PKG_BUILD_DIR)" \
|
M="$(PKG_BUILD_DIR)" \
|
||||||
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" SoC="$(CONFIG_TARGET_BOARD)" \
|
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" SoC="$(CONFIG_TARGET_SUBTARGET)" \
|
||||||
$(KERNEL_MAKE_FLAGS) \
|
$(KERNEL_MAKE_FLAGS) \
|
||||||
$(PKG_JOBS) \
|
$(PKG_JOBS) \
|
||||||
modules
|
modules
|
||||||
|
@ -51,7 +51,7 @@ MAKE_FLAGS+= \
|
|||||||
EXTRA_CFLAGS=-fno-stack-protector -I$(STAGING_DIR)/usr/include \
|
EXTRA_CFLAGS=-fno-stack-protector -I$(STAGING_DIR)/usr/include \
|
||||||
$(LNX_CONFIG_OPTS)
|
$(LNX_CONFIG_OPTS)
|
||||||
|
|
||||||
ifeq ($(CONFIG_TARGET_BOARD), "ipq807x")
|
ifeq ($(CONFIG_TARGET_SUBTARGET), "ipq807x")
|
||||||
MAKE_FLAGS+= CHIP_TYPE=HPPE PTP_FEATURE=disable SWCONFIG_FEATURE=disable
|
MAKE_FLAGS+= CHIP_TYPE=HPPE PTP_FEATURE=disable SWCONFIG_FEATURE=disable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ BOARDNAME:=Qualcomm Atheros 802.11ax WiSoC-s
|
|||||||
FEATURES:=squashfs ramdisk fpu nand rtc emmc
|
FEATURES:=squashfs ramdisk fpu nand rtc emmc
|
||||||
KERNELNAME:=Image dtbs
|
KERNELNAME:=Image dtbs
|
||||||
CPU_TYPE:=cortex-a53
|
CPU_TYPE:=cortex-a53
|
||||||
SUBTARGETS:=generic
|
SUBTARGETS:=ipq807x
|
||||||
|
|
||||||
KERNEL_PATCHVER:=6.1
|
KERNEL_PATCHVER:=6.1
|
||||||
|
|
||||||
@ -14,8 +14,7 @@ include $(INCLUDE_DIR)/target.mk
|
|||||||
DEFAULT_PACKAGES += \
|
DEFAULT_PACKAGES += \
|
||||||
kmod-usb3 kmod-usb-dwc3 kmod-usb-dwc3-qcom \
|
kmod-usb3 kmod-usb-dwc3 kmod-usb-dwc3-qcom \
|
||||||
kmod-leds-gpio kmod-gpio-button-hotplug \
|
kmod-leds-gpio kmod-gpio-button-hotplug \
|
||||||
kmod-phy-aquantia kmod-qca-nss-dp \
|
kmod-qca-nss-dp kmod-ath11k-ahb \
|
||||||
ath11k-firmware-ipq8074 kmod-ath11k-ahb \
|
|
||||||
wpad-basic-mbedtls uboot-envtools \
|
wpad-basic-mbedtls uboot-envtools \
|
||||||
e2fsprogs kmod-fs-ext4 losetup
|
e2fsprogs kmod-fs-ext4 losetup
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
BOARDNAME:=Generic
|
|
7
target/linux/qualcommax/ipq807x/target.mk
Normal file
7
target/linux/qualcommax/ipq807x/target.mk
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
SUBTARGET:=ipq807x
|
||||||
|
BOARDNAME:=Qualcomm Atheros IPQ807x
|
||||||
|
DEFAULT_PACKAGES += kmod-phy-aquantia ath11k-firmware-ipq8074
|
||||||
|
|
||||||
|
define Target/Description
|
||||||
|
Build firmware images for Qualcomm Atheros IPQ807x based boards.
|
||||||
|
endef
|
Loading…
x
Reference in New Issue
Block a user