meta-freescale/recipes-bsp/imx-vpu/imx-vpu-11.09.02/obey-variables.patch
Otavio Salvador f8517afc7a Move meta-fsl-arm content to layer root
The meta-fsl-arm is going to be used as the base for this layer. It
contains a clean history and allowing a more granullar set of changes.

This commit is just a rename of all contents of meta-fsl-arm
subdirectory to this layer's root, subsequent changes are based on top
of that.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2015-07-16 15:01:29 -03:00

28 lines
796 B
Diff

Obey CFLAGS, LDFLAGS
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Upstream-status: Pending
--- imx-vpu-11.09.02.orig/vpu/Makefile 2014-09-02 13:14:50.862005896 -0700
+++ imx-vpu-11.09.02/vpu/Makefile 2014-09-02 13:15:15.018153222 -0700
@@ -1,5 +1,6 @@
CC ?=$(CROSS_COMPILE)gcc
AR ?=$(CROSS_COMPILE)ar
+CFLAGS ?= -O2
# list of platforms which want this test case
INCLUDE_LIST:= IMX27ADS IMX51 IMX53 IMX6Q
@@ -33,10 +34,10 @@
endif
%.o: %.c
- $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@
+ $(CC) -D$(PLATFORM) -Wall -fPIC $(CFLAGS) -c $^ -o $@
$(LIBNAME).so.$(SONAMEVERSION): $(OBJ)
- $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@
+ $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ $(LDFLAGS)
$(LIBNAME).so: $(LIBNAME).so.$(SONAMEVERSION)
ln -s $< $@