From: Florian Fainelli Date: Sat, 8 Mar 2014 00:57:34 +0000 (+0000) Subject: stm32flash: make sure we pass our CFLAGS X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fc4d702c13c0816a1720da81f3318e9aafc82d01;p=openwrt%2Fsvn-archive%2Fpackages.git stm32flash: make sure we pass our CFLAGS Signed-off-by: Florian Fainelli SVN-Revision: 39823 --- diff --git a/utils/stm32flash/Makefile b/utils/stm32flash/Makefile index 6d4af92b3..19d2d47bf 100644 --- a/utils/stm32flash/Makefile +++ b/utils/stm32flash/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2012 OpenWrt.org +# Copyright (C) 2012-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=stm32flash PKG_REV:=61 PKG_VERSION:=r$(PKG_REV) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://stm32flash.googlecode.com/svn/trunk diff --git a/utils/stm32flash/patches/001-cflags_override.patch b/utils/stm32flash/patches/001-cflags_override.patch new file mode 100644 index 000000000..d8ba6f81a --- /dev/null +++ b/utils/stm32flash/patches/001-cflags_override.patch @@ -0,0 +1,30 @@ +--- a/Makefile ++++ b/Makefile +@@ -5,7 +5,7 @@ export AR + + all: + $(MAKE) -C parsers +- $(CC) -g -o stm32flash -I./ \ ++ $(CC) $(LDFLAGS) -o stm32flash -I./ \ + main.c \ + utils.c \ + stm32.c \ +@@ -13,7 +13,7 @@ all: + serial_platform.c \ + parsers/parsers.a \ + stm32/stmreset_binary.c \ +- -Wall ++ $(CFLAGS) + + clean: + $(MAKE) -C parsers clean +--- a/parsers/Makefile ++++ b/parsers/Makefile +@@ -1,6 +1,6 @@ + + all: +- $(CC) -g -Wall -c -I../ binary.c hex.c ++ $(CC) $(CFLAGS) -Wall -c -I../ binary.c hex.c + $(AR) r parsers.a binary.o hex.o + + clean: