summaryrefslogtreecommitdiff
path: root/packages/hotplug-ng
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/hotplug-ng
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/hotplug-ng')
-rw-r--r--packages/hotplug-ng/.mtn2git_empty0
-rw-r--r--packages/hotplug-ng/files/.mtn2git_empty0
-rw-r--r--packages/hotplug-ng/files/flags.patch87
3 files changed, 87 insertions, 0 deletions
diff --git a/packages/hotplug-ng/.mtn2git_empty b/packages/hotplug-ng/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/hotplug-ng/.mtn2git_empty
diff --git a/packages/hotplug-ng/files/.mtn2git_empty b/packages/hotplug-ng/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/hotplug-ng/files/.mtn2git_empty
diff --git a/packages/hotplug-ng/files/flags.patch b/packages/hotplug-ng/files/flags.patch
index e69de29bb2..1b67ce360f 100644
--- a/packages/hotplug-ng/files/flags.patch
+++ b/packages/hotplug-ng/files/flags.patch
@@ -0,0 +1,87 @@
+Index: hotplug-ng-001/Makefile
+===================================================================
+--- hotplug-ng-001.orig/Makefile 2005-02-10 17:40:02.000000000 -0600
++++ hotplug-ng-001/Makefile 2005-02-17 11:22:09.000000000 -0600
+@@ -96,25 +96,28 @@
+ then echo "-Os"; else echo "-O2" ; fi}
+
+ # add -Wredundant-decls when libsysfs gets cleaned up
+-WARNINGS := -Wall
++WARNINGS = -Wall
+
+-CFLAGS := -pipe
++CFLAGS = -pipe
++rCFLAGS = -D_GNU_SOURCE
+
+ ifeq ($(strip $(USE_LOG)),true)
+- CFLAGS += -DLOG
++ rCFLAGS += -DLOG
+ endif
+
+ # if DEBUG is enabled, then we do not strip or optimize
+ ifeq ($(strip $(DEBUG)),true)
+- CFLAGS += -O1 -g -DDEBUG -D_GNU_SOURCE
++ CFLAGS += -O1 -g -DDEBUG
+ LDFLAGS += -Wl,-warn-common
+ STRIPCMD = /bin/true -Since_we_are_debugging
+ else
+- CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
++ CFLAGS += $(OPTIMIZATION) -fomit-frame-pointer
+ LDFLAGS += -s -Wl,-warn-common
+ STRIPCMD = $(STRIP) -s --remove-section=.note --remove-section=.comment
+ endif
+
++CFLAGS += $(WARNINGS)
++
+ # If we are using our version of klibc, then we need to build, link it, and then
+ # link udev against it statically.
+ # Otherwise, use glibc and link dynamically.
+@@ -132,8 +135,8 @@
+
+ CRT0 = $(KLIBC_DIR)/crt0.o
+ LIBC = $(ARCH_LIB_OBJS) $(LIB_OBJS) $(CRT0)
+- CFLAGS += $(WARNINGS) -nostdinc \
+- $(OPTFLAGS) \
++ CFLAGS += $(OPTFLAGS)
++ rCFLAGS += -nostdinc \
+ -D__KLIBC__ -fno-builtin-printf \
+ -I$(KLIBC_FIXUPS_DIR) \
+ -include $(KLIBC_FIXUPS_DIR)/klibc_fixups.h \
+@@ -148,17 +151,16 @@
+ WARNINGS += -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+ CRT0 =
+ LIBC =
+- CFLAGS += $(WARNINGS) -I$(GCCINCDIR)
+ LIB_OBJS = -lc
+ LDFLAGS =
+ endif
+
+ ifeq ($(strip $(USE_SELINUX)),true)
+- CFLAGS += -DUSE_SELINUX
++ rCFLAGS += -DUSE_SELINUX
+ LIB_OBJS += -lselinux
+ endif
+
+-CFLAGS += -I$(PWD)/libsysfs/sysfs \
++rCFLAGS += -I$(PWD)/libsysfs/sysfs \
+ -I$(PWD)/libsysfs
+
+ all: $(ROOT) $(MODULE_ALL) $(GEN_CONFIGS)
+@@ -169,7 +171,7 @@
+ @if [ ! -r klibc/linux ]; then \
+ ln -f -s $(KERNEL_DIR) klibc/linux; \
+ fi
+- $(MAKE) -C klibc SUBDIRS=klibc
++ $(MAKE) -C klibc CFLAGS="$(rCFLAGS) $(CFLAGS)" SUBDIRS=klibc
+
+ SYSFS = $(PWD)/libsysfs/sysfs_bus.o \
+ $(PWD)/libsysfs/sysfs_class.o \
+@@ -272,7 +274,7 @@
+ #.c.o:
+ # $(CC) $(CFLAGS) $(DEFS) $(CPPFLAGS) -c -o $@ $<
+ .c.o:
+- $(QUIET) $(CC) $(CFLAGS) -c -o $@ $<
++ $(QUIET) $(CC) $(rCFLAGS) $(CFLAGS) -c -o $@ $<
+
+
+ clean: