From 8276185f0598f65769e14835409da683f1d4ffe9 Mon Sep 17 00:00:00 2001
From: Ronny Nilsson <ronny.nilsson@inteno.se>
Date: Fri, 3 Nov 2017 11:24:38 +0100
Subject: [PATCH] sdk: pass a C define of what architecture we build for to all
 compilations

This is needed for programs which use Broadcom hacks and workarounds,
for example; snmpd.
---
 iopsys-brcm63xx-arm/Makefile  | 1 +
 iopsys-brcm63xx-mips/Makefile | 1 +
 2 files changed, 2 insertions(+)

diff --git a/iopsys-brcm63xx-arm/Makefile b/iopsys-brcm63xx-arm/Makefile
index fe5a5476e..607760de9 100644
--- a/iopsys-brcm63xx-arm/Makefile
+++ b/iopsys-brcm63xx-arm/Makefile
@@ -12,6 +12,7 @@ BOARDNAME:=Iopsys Broadcom ARM
 FEATURES:=usb jffs2_nand nand ubifs
 MAINTAINER:=Benjamin Larsson <benjamin.larsson@inteno.se>
 CFLAGS:=-Os -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp
+CFLAGS += -DCONFIG_TARGET_iopsys_brcm63xx_arm
 
 LINUX_VERSION:=4.1.27
 
diff --git a/iopsys-brcm63xx-mips/Makefile b/iopsys-brcm63xx-mips/Makefile
index 939025348..a3d222a14 100644
--- a/iopsys-brcm63xx-mips/Makefile
+++ b/iopsys-brcm63xx-mips/Makefile
@@ -12,6 +12,7 @@ BOARDNAME:=Iopsys Broadcom MIPS
 FEATURES:=usb nand ubifs
 MAINTAINER:=Benjamin Larsson <benjamin.larsson@inteno.se>
 CFLAGS:=-Os -pipe -mips32 -mtune=mips32 -fno-caller-saves
+CFLAGS += -DCONFIG_TARGET_iopsys_brcm63xx_mips
 
 LINUX_VERSION:=4.1.27
 
-- 
GitLab