mirror of https://github.com/hak5/openwrt.git
parent
c420d14234
commit
14d2d03735
|
@ -51,12 +51,12 @@ $(BIN_DIR)/$(IB_NAME).tar.bz2:
|
||||||
rm -rf $(IB_DIR)
|
rm -rf $(IB_DIR)
|
||||||
mkdir -p $(IB_DIR)/packages
|
mkdir -p $(IB_DIR)/packages
|
||||||
mkdir -p $(IB_DIR)/scripts
|
mkdir -p $(IB_DIR)/scripts
|
||||||
cp -dpR ./imagebuilder/* $(IB_DIR)/
|
cp -fpR ./imagebuilder/* $(IB_DIR)/
|
||||||
cp -dpR $(TOPDIR)/bin/packages/*.ipk $(IB_DIR)/packages/
|
cp -fpR $(TOPDIR)/bin/packages/*.ipk $(IB_DIR)/packages/
|
||||||
cp $(TOPDIR)/scripts/ipkg $(IB_DIR)/scripts/
|
cp $(TOPDIR)/scripts/ipkg $(IB_DIR)/scripts/
|
||||||
$(MAKE) install-ib
|
$(MAKE) install-ib
|
||||||
cp $(TOPDIR)/rules.mk $(IB_DIR)
|
cp $(TOPDIR)/rules.mk $(IB_DIR)
|
||||||
cp -dpR ./image $(IB_DIR)/
|
cp -fpR ./image $(IB_DIR)/
|
||||||
cp $(TOPDIR)/.config $(IB_DIR)/
|
cp $(TOPDIR)/.config $(IB_DIR)/
|
||||||
find $(IB_DIR) -name CVS | xargs rm -rf
|
find $(IB_DIR) -name CVS | xargs rm -rf
|
||||||
(cd $(BUILD_DIR); tar c $(IB_NAME) | bzip2 -c > $(BIN_DIR)/$(IB_NAME).tar.bz2)
|
(cd $(BUILD_DIR); tar c $(IB_NAME) | bzip2 -c > $(BIN_DIR)/$(IB_NAME).tar.bz2)
|
||||||
|
|
|
@ -94,7 +94,7 @@ endif
|
||||||
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-kernel.bin $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).bin
|
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-kernel.bin $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).bin
|
||||||
install-ib:
|
install-ib:
|
||||||
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
||||||
cp -dpR $(KDIR)/vmlinux.bin $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
cp -fpR $(KDIR)/vmlinux.bin $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
||||||
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)
|
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)
|
||||||
cp -dpR $(STAGING_DIR)/bin/addpattern $(IB_DIR)/staging_dir_$(ARCH)/bin/
|
cp -fpR $(STAGING_DIR)/bin/addpattern $(IB_DIR)/staging_dir_$(ARCH)/bin/
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ endif
|
||||||
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx
|
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FS).trx
|
||||||
install-ib:
|
install-ib:
|
||||||
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
|
mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
|
||||||
cp -dpR $(STAGING_DIR)/bin/addpattern $(STAGING_DIR)/bin/trx $(STAGING_DIR)/bin/motorola-bin $(IB_DIR)/staging_dir_$(ARCH)/bin
|
cp -fpR $(STAGING_DIR)/bin/addpattern $(STAGING_DIR)/bin/trx $(STAGING_DIR)/bin/motorola-bin $(IB_DIR)/staging_dir_$(ARCH)/bin
|
||||||
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
||||||
cp -dpR $(BUILD_DIR)/loader.gz $(IB_DIR)/build_$(ARCH)/
|
cp -fpR $(BUILD_DIR)/loader.gz $(IB_DIR)/build_$(ARCH)/
|
||||||
cp -dpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
cp -fpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
||||||
|
|
|
@ -33,4 +33,4 @@ compile:
|
||||||
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
|
install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
|
||||||
install-ib:
|
install-ib:
|
||||||
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
|
||||||
cp -dpR $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
cp -fpR $(KDIR)/bzImage $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
|
||||||
|
|
|
@ -142,7 +142,7 @@ $(eval $(call KMOD_template,VFAT,vfat,\
|
||||||
$(MODULES_DIR)/kernel/fs/vfat/vfat.o \
|
$(MODULES_DIR)/kernel/fs/vfat/vfat.o \
|
||||||
$(MODULES_DIR)/kernel/fs/fat/fat.o \
|
$(MODULES_DIR)/kernel/fs/fat/fat.o \
|
||||||
,CONFIG_VFAT_FS,,30,fat vfat))
|
,CONFIG_VFAT_FS,,30,fat vfat))
|
||||||
ifneq (${shell ls $(MODULES_DIR)/kernel/crypto/*.o},)
|
ifneq ($(wildcard $(MODULES_DIR)/kernel/crypto/*.o),)
|
||||||
CONFIG_CRYPTO:=m
|
CONFIG_CRYPTO:=m
|
||||||
endif
|
endif
|
||||||
$(eval $(call KMOD_template,CRYPTO,crypto,\
|
$(eval $(call KMOD_template,CRYPTO,crypto,\
|
||||||
|
@ -166,7 +166,7 @@ $(eval $(call KMOD_template,TUN,tun,\
|
||||||
$(eval $(call KMOD_template,GRE,gre,\
|
$(eval $(call KMOD_template,GRE,gre,\
|
||||||
$(MODULES_DIR)/kernel/net/ipv4/ip_gre.o \
|
$(MODULES_DIR)/kernel/net/ipv4/ip_gre.o \
|
||||||
,CONFIG_NET_IPGRE))
|
,CONFIG_NET_IPGRE))
|
||||||
ifneq (${shell ls $(MODULES_DIR)/kernel/net/sched/*.o},)
|
ifneq ($(wildcard $(MODULES_DIR)/kernel/net/sched/*.o),)
|
||||||
CONFIG_SCHED:=m
|
CONFIG_SCHED:=m
|
||||||
endif
|
endif
|
||||||
$(eval $(call KMOD_template,SCHED,sched,\
|
$(eval $(call KMOD_template,SCHED,sched,\
|
||||||
|
|
Loading…
Reference in New Issue