From c86d16daf99f3f243c327ed543a54fd60d99220e Mon Sep 17 00:00:00 2001 From: Markus Gothe Date: Fri, 28 Aug 2020 09:26:38 +0200 Subject: [PATCH] Redmine#27829 - easy-soc-libs: Use correct chipset defintions The struct for passing ioctl() data does differ in size (and offsets) on different platforms, hence we need to pass the correct defines to the compiler. Change-Id: If81a4bd79b21c5e93443e5ef48fb3f1b07058f60 --- easy-soc-libs/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/easy-soc-libs/Makefile b/easy-soc-libs/Makefile index c7ec1a965..69cefa20a 100644 --- a/easy-soc-libs/Makefile +++ b/easy-soc-libs/Makefile @@ -64,8 +64,17 @@ ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y) KERNEL_DIR:=$(BUILD_DIR)/bcmkernel/bcm963xx else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y) TARGET_PLATFORM=BROADCOM - TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCONFIG_BCM963138 \ + TARGET_CFLAGS +=-DIOPSYS_BROADCOM \ -I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx + ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm_panther),y) + TARGET_CFLAGS +=-DCONFIG_BCM96846 + else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm_tiger),y) + TARGET_CFLAGS +=-DCONFIG_BCM96858 + else ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm_eagle),y) + TARGET_CFLAGS +=-DCONFIG_BCM963178 + else + TARGET_CFLAGS +=-DCONFIG_BCM963138 + endif else ifeq ($(CONFIG_TARGET_iopsys_ramips),y) TARGET_PLATFORM=MEDIATEK TARGET_CFLAGS +=-DIOPSYS_MEDIATEK