1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-10 09:34:04 +02:00

don't compile libipkg in busybox if ipkg is disabled

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3901 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2006-06-04 01:31:03 +00:00
parent 30023faa50
commit 43b4ae2de0

View File

@ -203,16 +203,16 @@ diff -ruN busybox-1.1.2-orig/archival/libipkg/Makefile.in busybox-1.1.2+ipkg-0.9
+ str_util.c \
+ xsystem.c \
+
+LIBIPKG-y += $(LIBIPKG_CORE_SOURCES)
+LIBIPKG-y += $(LIBIPKG_CMD_SOURCES)
+LIBIPKG-y += $(LIBIPKG_DB_SOURCES)
+LIBIPKG-y += $(LIBIPKG_LIST_SOURCES)
+LIBIPKG-y += $(LIBIPKG_UTIL_SOURCES)
+LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_CORE_SOURCES)
+LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_CMD_SOURCES)
+LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_DB_SOURCES)
+LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_LIST_SOURCES)
+LIBIPKG-$(CONFIG_IPKG) += $(LIBIPKG_UTIL_SOURCES)
+LIBIPKG_OBJS=$(patsubst %.c,$(LIBIPKG_DIR)%.o, $(LIBIPKG-y))
+
+CFLAGS += -DIPKG_LIB -DIPKGLIBDIR="\"/usr/lib\"" -DHOST_CPU_STR="\"$(TARGET_ARCH)\""
+
+libraries-y += $(LIBIPKG_DIR)$(LIBIPKG_AR)
+libraries-$(CONFIG_IPKG) += $(LIBIPKG_DIR)$(LIBIPKG_AR)
+
+$(LIBIPKG_DIR)$(LIBIPKG_AR): $(LIBIPKG_OBJS)
+ $(do_ar)