mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-18 23:01:50 -09:00
dmidecode: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
committed by
Peter Korsgaard
parent
83f43bab37
commit
9d3547529b
35
package/dmidecode/dmidecode-build-system-fixes.patch
Normal file
35
package/dmidecode/dmidecode-build-system-fixes.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
Minor build system fixes
|
||||
|
||||
Usual build system fixes to allow CC/CFLAGS/LDFLAGS to be overriden
|
||||
from the command line, and completed by additional flags from the
|
||||
Makefile.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/Makefile
|
||||
===================================================================
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -12,9 +12,10 @@
|
||||
# (at your option) any later version.
|
||||
#
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
|
||||
- -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
|
||||
+CC ?= gcc
|
||||
+override CFLAGS += \
|
||||
+ -W -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \
|
||||
+ -Wcast-align -Wwrite-strings -Wmissing-prototypes -Winline -Wundef
|
||||
#CFLAGS += -DBIGENDIAN
|
||||
#CFLAGS += -DALIGNMENT_WORKAROUND
|
||||
|
||||
@@ -23,7 +24,7 @@
|
||||
#CFLAGS += -g
|
||||
|
||||
# Pass linker flags here
|
||||
-LDFLAGS =
|
||||
+override LDFLAGS +=
|
||||
|
||||
DESTDIR =
|
||||
prefix = /usr/local
|
||||
Reference in New Issue
Block a user