aboutsummaryrefslogtreecommitdiff
path: root/external/gard
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/gard
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/gard')
-rw-r--r--external/gard/rules.mk2
1 files changed, 0 insertions, 2 deletions
diff --git a/external/gard/rules.mk b/external/gard/rules.mk
index f0086a2..0dd14ed 100644
--- a/external/gard/rules.mk
+++ b/external/gard/rules.mk
@@ -7,8 +7,6 @@ OBJS += $(LIBFLASH_OBJS)
OBJS += common-arch_flash.o
EXE = gard
-CC = $(CROSS_COMPILE)gcc
-
prefix = /usr/local/
sbindir = $(prefix)/sbin
datadir = $(prefix)/share