summaryrefslogtreecommitdiff
path: root/libdde_linux26/lib/src_ip
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-19 06:14:24 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-19 06:14:24 +0000
commit6fafeb146e9efd59140ea58cebd7dd38ae9a6379 (patch)
tree7db89ba6a28932514b105d620bba4884ec332ec3 /libdde_linux26/lib/src_ip
parent38c2c2458e3f4ecb329ff35621806252aac209b9 (diff)
parent8df772b3c665e663f6f9d2a70f9c691590bd3f91 (diff)
Merge branch 'dde' into upstream-merged
Diffstat (limited to 'libdde_linux26/lib/src_ip')
-rw-r--r--libdde_linux26/lib/src_ip/Makefile52
-rw-r--r--libdde_linux26/lib/src_ip/broken0
-rw-r--r--libdde_linux26/lib/src_ip/linux/autoconf.h5
3 files changed, 57 insertions, 0 deletions
diff --git a/libdde_linux26/lib/src_ip/Makefile b/libdde_linux26/lib/src_ip/Makefile
new file mode 100644
index 00000000..9665ff9b
--- /dev/null
+++ b/libdde_linux26/lib/src_ip/Makefile
@@ -0,0 +1,52 @@
+PKGDIR ?= ../../..
+L4DIR ?= $(PKGDIR)/../..
+CONTRIB ?= $(PKGDIR)/linux26/contrib
+
+-include $(PKGDIR_OBJ)/Makeconf
+
+ifeq ($(CONFIG_DDE26_NET),y)
+TARGET += libdde_linux26_net_ip.a
+endif
+
+SYSTEMS = x86-l4v2
+
+ifeq ($(ARCH), x86)
+ARCH_DIR = arch/i386
+endif
+
+# contrib sources are in $(CONTRIB)
+vpath %.c $(CONTRIB) $(PKGDIR)/linux26/lib/src
+vpath %.S $(CONTRIB) $(PKGDIR)/linux26/lib/src
+
+PRIVATE_INCDIR += $(CONTRIB)/drivers/pci $(PKGDIR)/linux26/lib/src/arch/l4 \
+ $(CONTRIB)/$(ARCH_DIR)/pci $(CONTRIB)/drivers/base/ \
+ $(CONTRIB)/lib $(PKGDIR_OBJ) $(CONTRIB)/net/core
+
+ifeq ($(ARCH), x86)
+SRC_S_libdde_linux26_net_ip.a += $(ARCH_DIR)/lib/checksum.S
+endif
+
+SRC_C_libdde_linux26_net_ip.a += \
+ arch/l4/net.c \
+ drivers/net/mii.c \
+ net/core/skbuff.c \
+ net/core/utils.c \
+ net/core/dev.c \
+ net/core/ethtool.c \
+ net/core/link_watch.c \
+ net/core/dev_mcast.c \
+ net/core/neighbour.c \
+ net/core/netevent.c \
+ net/ethernet/eth.c \
+ net/sched/sch_generic.c \
+ arch/l4/inodes.c \
+ mm/memory.c \
+ net/core/filter.c \
+ net/core/rtnetlink.c \
+ net/core/sock.c \
+ net/netlink/af_netlink.c \
+ net/netlink/attr.c
+
+include $(PKGDIR)/linux26/Makeconf
+
+include $(L4DIR)/mk/lib.mk
diff --git a/libdde_linux26/lib/src_ip/broken b/libdde_linux26/lib/src_ip/broken
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/libdde_linux26/lib/src_ip/broken
diff --git a/libdde_linux26/lib/src_ip/linux/autoconf.h b/libdde_linux26/lib/src_ip/linux/autoconf.h
new file mode 100644
index 00000000..7ddb3693
--- /dev/null
+++ b/libdde_linux26/lib/src_ip/linux/autoconf.h
@@ -0,0 +1,5 @@
+/* Include original DDE26 autoconf file */
+#include_next <linux/autoconf.h>
+
+/* Because we do ! need INET support */
+#define CONFIG_INET 1