summaryrefslogtreecommitdiffstats
path: root/package/iprutils/iprutils-02-use-environment-cflags.patch
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-03-12 11:45:57 +0800
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-03-29 15:53:44 +0100
commit5e3ded0d75b00bb212b373a42851db98b79e28c1 (patch)
tree0b80c1779dc139c8db099cc47054e60f15eaa824 /package/iprutils/iprutils-02-use-environment-cflags.patch
parent1acff22d5e34a91ed6e2f87312962160612fbd3d (diff)
downloadbuildroot-5e3ded0d75b00bb212b373a42851db98b79e28c1.tar.gz
buildroot-5e3ded0d75b00bb212b373a42851db98b79e28c1.zip
package/iprutils: Add IBM Power RAID utilities
[Thomas: add patch to allow passing CFLAGS from the environment, use TARGET_CONFIGURE_OPTS instead of manually passing CC/LD, add upstream URL in Config.in, use the Makefile install target instead of open-coding the installation in iprutils.mk.] Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/iprutils/iprutils-02-use-environment-cflags.patch')
-rw-r--r--package/iprutils/iprutils-02-use-environment-cflags.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/iprutils/iprutils-02-use-environment-cflags.patch b/package/iprutils/iprutils-02-use-environment-cflags.patch
new file mode 100644
index 0000000000..8eab450e22
--- /dev/null
+++ b/package/iprutils/iprutils-02-use-environment-cflags.patch
@@ -0,0 +1,20 @@
+Allow CFLAGS to be extended from the environment
+
+We also remove -g, since we don't necessarily want to build with
+debugging symbols. Buildroot will add -g if needed.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/Makefile
+===================================================================
+--- a/Makefile
++++ b/Makefile
+@@ -9,7 +9,7 @@
+
+ include version.mk
+
+-CFLAGS = -g -Wall $(IPR_DEFINES)
++override CFLAGS += -Wall $(IPR_DEFINES)
+ UTILS_VER = $(IPR_MAJOR_RELEASE).$(IPR_MINOR_RELEASE).$(IPR_FIX_LEVEL)
+ TAR = cd .. && tar -zcpf iprutils-$(UTILS_VER)-src.tgz --exclude CVS --exclude applied-patches --exclude series --exclude txt --exclude pc --exclude patches --exclude debug --exclude *~* iprutils
+
OpenPOWER on IntegriCloud