X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile.openwrt;h=b618a521575119605de86acf91f8cc8047615f70;hb=79ce6bd8629b0d960dffffa3893b5a97192cd35e;hp=50dae83494b3c5b778cb3c8a669a1e035e22c921;hpb=5ad9fec40da13c449d50def12f9cea6e24b6a708;p=ipfw.git diff --git a/Makefile.openwrt b/Makefile.openwrt index 50dae83..b618a52 100644 --- a/Makefile.openwrt +++ b/Makefile.openwrt @@ -44,7 +44,9 @@ define Build/Prepare # $(warning Preparing ipfw sources) mkdir -p $(PKG_BUILD_DIR) $(CP) -Rp $(IPFW_DIR)/* $(PKG_BUILD_DIR)/ + (cd $(PKG_BUILD_DIR)/ipfw && $(MAKE) include_e ) (cd $(PKG_BUILD_DIR)/dummynet && $(MAKE) include_e ) + (cd $(PKG_BUILD_DIR)/dummynet2 && $(MAKE) include_e ) endef define Build/Compile @@ -54,10 +56,15 @@ define Build/Compile ARCH="$(LINUX_KARCH)" \ SUBDIRS="$(PKG_BUILD_DIR)/dummynet" \ VER=openwrt modules + $(MAKE) -C "$(LINUX_DIR)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + ARCH="$(LINUX_KARCH)" \ + SUBDIRS="$(PKG_BUILD_DIR)/dummynet2" \ + VER=openwrt modules # compile the userland part for openwrt $(MAKE) -C $(PKG_BUILD_DIR)/ipfw \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) -I./include -include ../glue.h" \ + CFLAGS="$(TARGET_CFLAGS) -I./include_e -I./include -include ../glue.h" \ VER=openwrt all endef