aboutsummaryrefslogtreecommitdiff
path: root/external/opal-prd
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-04-14 12:54:20 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-04-17 20:45:41 -0700
commit3137d249ba10ad6fa7a52486cdacddfab7419189 (patch)
tree80c69f449729d83d4cb3fc6a5b16258b0234219a /external/opal-prd
parenta56b9aa8e654aa559538694dac539135b942f8e0 (diff)
downloadskiboot-3137d249ba10ad6fa7a52486cdacddfab7419189.zip
skiboot-3137d249ba10ad6fa7a52486cdacddfab7419189.tar.gz
skiboot-3137d249ba10ad6fa7a52486cdacddfab7419189.tar.bz2
pflash: Allow building under yocto.
The makefiles under external/* utilize the $(CROSS_COMPILE) variable to determine the cross-compiler prefix. In a few places, $(CROSS_COMPILE)gcc is called instead of $(CC). The issue with this is that yocto build passes some compile flags as part of $(CC) instead of $(CFLAGS), the most important of these is '--sysroot=...'. Without the proper --sysroot flag, pflash compile fails to find critical libc headers like stdio.h. This change delegates setting of $(CC) and $(LD) to external/common/rules.mk, which is widely used in the external tree, and ensures that: 1) $(CC) is used instead of $(CROSS_COMPILE)gcc. 2) CC is only set when not passed from the environment. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/opal-prd')
-rw-r--r--external/opal-prd/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile
index 32b85e5..7482af3 100644
--- a/external/opal-prd/Makefile
+++ b/external/opal-prd/Makefile
@@ -1,5 +1,3 @@
-CC = $(CROSS_COMPILE)gcc
-
CFLAGS += -m64 -Werror -Wall -g2 -ggdb
LDFLAGS += -m64
ASFLAGS = -m64