# The list of stuff to build for the target filesystem
#
#############################################################
-TARGETS:=host-sed gcc3_3 openwrt-base openwrt-code.bin
+TARGETS:=host-sed gcc3_3 ipkg-utils openwrt-base openwrt-code.bin
PACKAGES:=oidentd iproute2 sched-modules wshaper
$(BUILD_DIR)/Packages : $(PACKAGES_IPK)
- (cd $(BUILD_DIR) ; ipkg-make-index . > Packages)
+ (cd $(BUILD_DIR) ; $(IPKG_MAKE_INDEX) . > Packages)
world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS) $(PACKAGES_IPK) $(BUILD_DIR)/Packages
@echo "ALL DONE."
iproute2-ipk: $(IPROUTE2_IPKTARGET)
$(IPROUTE2_IPKTARGET): $(IPROUTE2_DIR)/ipkg/rules
- (cd $(IPROUTE2_DIR); ipkg-buildpackage )
+ (cd $(IPROUTE2_DIR); $(IPKG_BUILDPACKAGE) )
$(IPROUTE2_DIR)/ipkg/rules: $(IPROUTE2_DIR)/tc/tc $(DL_DIR)/$(IPROUTE2_IPKSRC)
tar -C $(IPROUTE2_DIR) -zxf $(DL_DIR)/$(IPROUTE2_IPKSRC)
$(BUILD_DIR)/$(OIDENTD_IPKTARGET): $(OIDENTD_DIR)/$(OIDENTD_TARGET) $(OIDENTD_DIR)/ipkg/rules
- (cd $(OIDENTD_DIR); ipkg-buildpackage)
+ (cd $(OIDENTD_DIR); $(IPKG_BUILDPACKAGE))
# now that we have it all in place, just build it
$(BUILD_DIR)/$(SCHEDM_TARGET): $(BUILD_DIR)/$(SCHEDM)/ipkg/control $(BUILD_DIR)/$(SCHEDM)/modules/2.4.20/net/sched/cls_fw.o
- cd $(BUILD_DIR)/$(SCHEDM); ipkg-buildpackage -c
+ cd $(BUILD_DIR)/$(SCHEDM); $(IPKG_BUILDPACKAGE)
# now that we have it all in place, just build it
$(BUILD_DIR)/$(WSHAPER_TARGET): $(BUILD_DIR)/$(WSHAPER)/ipkg/control
- cd $(BUILD_DIR)/$(WSHAPER); ipkg-buildpackage -c
+ cd $(BUILD_DIR)/$(WSHAPER); $(IPKG_BUILDPACKAGE)