From e386a2e3ae4a1bbcd5dd76630e45492d493c2065 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Tue, 18 Feb 2014 22:11:24 +0000 Subject: uboot-envtools: pass target cflags git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39629 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/boot/uboot-envtools/Makefile | 3 ++- .../boot/uboot-envtools/patches/001-honor_opt_flags.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 package/boot/uboot-envtools/patches/001-honor_opt_flags.patch (limited to 'package/boot') diff --git a/package/boot/uboot-envtools/Makefile b/package/boot/uboot-envtools/Makefile index 8f052889e9..631032c247 100644 --- a/package/boot/uboot-envtools/Makefile +++ b/package/boot/uboot-envtools/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uboot-envtools PKG_DISTNAME:=u-boot PKG_VERSION:=2013.10 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:= \ @@ -41,6 +41,7 @@ define Build/Compile touch $(PKG_BUILD_DIR)/include/config.h $(MAKE) -C $(PKG_BUILD_DIR) \ HOSTCC="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gcc" \ + HOSTOPTFLAGS="$(TARGET_CFLAGS)" \ HOSTSTRIP="$(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)strip" \ env endef diff --git a/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch b/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch new file mode 100644 index 0000000000..16c3920bd6 --- /dev/null +++ b/package/boot/uboot-envtools/patches/001-honor_opt_flags.patch @@ -0,0 +1,12 @@ +--- a/config.mk ++++ b/config.mk +@@ -62,7 +62,8 @@ PLATFORM_LDFLAGS = + + ######################################################################### + +-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ ++HOSTOPTFLAGS = -O2 -fomit-frame-pointer ++HOSTCFLAGS = -Wall -Wstrict-prototypes $(HOSTOPTFLAGS) \ + $(HOSTCPPFLAGS) + HOSTSTRIP = strip + -- cgit v1.2.3