mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:25:21 +02:00
Use $(CP) instead of $(INSTALL_BIN) for binaries.
Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9694 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b14c8e57db
commit
c3cd9cb9ab
@ -112,8 +112,8 @@ endef
|
|||||||
|
|
||||||
define Package/e2fsprogs/install
|
define Package/e2fsprogs/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/e2fsck $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/e2fsck $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/mke2fs $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mke2fs $(1)/usr/sbin/
|
||||||
ln -sf mke2fs $(1)/usr/sbin/mkfs.ext2
|
ln -sf mke2fs $(1)/usr/sbin/mkfs.ext2
|
||||||
ln -sf mke2fs $(1)/usr/sbin/mkfs.ext3
|
ln -sf mke2fs $(1)/usr/sbin/mkfs.ext3
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
@ -132,12 +132,12 @@ endef
|
|||||||
|
|
||||||
define Package/tune2fs/install
|
define Package/tune2fs/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/tune2fs $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tune2fs $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/resize2fs/install
|
define Package/resize2fs/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/resize2fs $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/resize2fs $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,e2fsprogs))
|
$(eval $(call BuildPackage,e2fsprogs))
|
||||||
|
@ -126,7 +126,7 @@ endef
|
|||||||
|
|
||||||
define Package/fuse-utils/install
|
define Package/fuse-utils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fusermount $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libfuse/install
|
define Package/libfuse/install
|
||||||
|
@ -62,7 +62,7 @@ endef
|
|||||||
|
|
||||||
define Package/gdbserver/install
|
define Package/gdbserver/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,gdbserver))
|
$(eval $(call BuildPackage,gdbserver))
|
||||||
|
@ -72,10 +72,10 @@ define Package/ipsec-tools/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ipsec-tools/conffiles
|
define Package/ipsec-tools/conffiles
|
||||||
|
@ -256,7 +256,7 @@ define Package/iptables/install
|
|||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(INSTALL_DATA) ./files/firewall.awk $(1)/usr/lib
|
$(INSTALL_DATA) ./files/firewall.awk $(1)/usr/lib
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iptables $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/iptables
|
$(INSTALL_DIR) $(1)/usr/lib/iptables
|
||||||
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
|
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
|
||||||
$(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN:xt_%=ipt_%)) $(1)/usr/lib/iptables/ \
|
$(CP) $(patsubst %,lib%.so,$(IPT_BUILTIN:xt_%=ipt_%)) $(1)/usr/lib/iptables/ \
|
||||||
@ -265,12 +265,12 @@ endef
|
|||||||
|
|
||||||
define Package/iptables-utils/install
|
define Package/iptables-utils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iptables-{save,restore} $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iptables-{save,restore} $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ip6tables/install
|
define Package/ip6tables/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/iptables
|
$(INSTALL_DIR) $(1)/usr/lib/iptables
|
||||||
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
|
(cd $(PKG_INSTALL_DIR)/usr/lib/iptables ; \
|
||||||
$(CP) libip6t_*.so $(1)/usr/lib/iptables/ \
|
$(CP) libip6t_*.so $(1)/usr/lib/iptables/ \
|
||||||
@ -279,7 +279,7 @@ endef
|
|||||||
|
|
||||||
define Package/ip6tables-utils/install
|
define Package/ip6tables-utils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables-{save,restore} $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ip6tables-{save,restore} $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildPlugin
|
define BuildPlugin
|
||||||
|
@ -81,7 +81,7 @@ endef
|
|||||||
|
|
||||||
define Package/atm-tools/install
|
define Package/atm-tools/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin/
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/atmarp{,d} $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/lib/network
|
$(INSTALL_DIR) $(1)/lib/network
|
||||||
$(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
|
$(INSTALL_BIN) ./files/ipoa.sh $(1)/lib/network/
|
||||||
endef
|
endef
|
||||||
|
@ -137,7 +137,7 @@ define Package/openssl-util/install
|
|||||||
$(INSTALL_DIR) $(1)/etc/ssl/private
|
$(INSTALL_DIR) $(1)/etc/ssl/private
|
||||||
chmod 0700 $(1)/etc/ssl/private
|
chmod 0700 $(1)/etc/ssl/private
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/openssl $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openssl $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libopenssl))
|
$(eval $(call BuildPackage,libopenssl))
|
||||||
|
@ -62,8 +62,8 @@ define Package/pcmcia-cs/install
|
|||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
$(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
|
$(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,pcmcia-cs))
|
$(eval $(call BuildPackage,pcmcia-cs))
|
||||||
|
@ -80,9 +80,9 @@ endef
|
|||||||
|
|
||||||
define Package/shfs-utils/install
|
define Package/shfs-utils/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/shfs{,u}mount $(1)/usr/bin/
|
||||||
$(INSTALL_DIR) $(1)/sbin
|
$(INSTALL_DIR) $(1)/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/mount.shfs $(1)/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,shfs))
|
$(eval $(call KernelPackage,shfs))
|
||||||
|
@ -52,14 +52,14 @@ define Package/udev/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/
|
$(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/
|
||||||
install -d -m0775 $(1)/lib/udev
|
install -d -m0775 $(1)/lib/udev
|
||||||
install -d -m0775 $(1)/sbin/
|
install -d -m0775 $(1)/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/sbin/udevsettle $(1)/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevsettle $(1)/sbin/
|
||||||
install -d -m0775 $(1)/usr/bin/
|
install -d -m0775 $(1)/usr/bin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
|
||||||
install -d -m0775 $(1)/usr/sbin/
|
install -d -m0775 $(1)/usr/sbin/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/udevtrigger/install
|
define Package/udevtrigger/install
|
||||||
|
@ -63,7 +63,7 @@ endef
|
|||||||
|
|
||||||
define Package/wireless-tools/install
|
define Package/wireless-tools/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,wireless-tools))
|
$(eval $(call BuildPackage,wireless-tools))
|
||||||
|
@ -29,8 +29,8 @@ $(BIN_DIR)/$(IB_NAME).tar.bz2: clean
|
|||||||
$(TMP_DIR)/.targetinfo \
|
$(TMP_DIR)/.targetinfo \
|
||||||
$(TMP_DIR)/.packageinfo \
|
$(TMP_DIR)/.packageinfo \
|
||||||
$(PKG_BUILD_DIR)/
|
$(PKG_BUILD_DIR)/
|
||||||
$(CP) $(TOOLCHAIN_DIR)/bin $(PKG_BUILD_DIR)/staging_dir/host/
|
$(INSTALL_BIN) $(TOOLCHAIN_DIR)/bin $(PKG_BUILD_DIR)/staging_dir/host/
|
||||||
$(CP) $(STAGING_DIR_HOST)/bin/* $(PKG_BUILD_DIR)/staging_dir/host/bin/
|
$(INSTALL_BIN) $(STAGING_DIR_HOST)/bin/* $(PKG_BUILD_DIR)/staging_dir/host/bin/
|
||||||
$(CP) $(TOPDIR)/target/linux $(PKG_BUILD_DIR)/target/
|
$(CP) $(TOPDIR)/target/linux $(PKG_BUILD_DIR)/target/
|
||||||
rm -rf \
|
rm -rf \
|
||||||
$(PKG_BUILD_DIR)/target/linux/*/patches \
|
$(PKG_BUILD_DIR)/target/linux/*/patches \
|
||||||
|
@ -56,7 +56,7 @@ define Image/Build
|
|||||||
$(TARGET_CROSS)objcopy -O srec -I binary --adjust-vma $(FLASH_FS) $(KDIR)/root.$(1) $(KDIR)/root.$(1).srec
|
$(TARGET_CROSS)objcopy -O srec -I binary --adjust-vma $(FLASH_FS) $(KDIR)/root.$(1) $(KDIR)/root.$(1).srec
|
||||||
grep -v S7 $(KDIR)/root.$(1).srec > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
grep -v S7 $(KDIR)/root.$(1).srec > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
||||||
grep -v S0 $(KDIR)/kernel.flash.srec >> $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
grep -v S0 $(KDIR)/kernel.flash.srec >> $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
||||||
$(CP) $(KDIR)/kernel.flash.bin $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.bin
|
$(INSTALL_BIN) $(KDIR)/kernel.flash.bin $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.bin
|
||||||
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1).fs
|
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1).fs
|
||||||
$(CP) $(KDIR)/kernel.flash.srec $(BIN_DIR)/openwrt-$(BOARD)-vmlinux-flash.srec
|
$(CP) $(KDIR)/kernel.flash.srec $(BIN_DIR)/openwrt-$(BOARD)-vmlinux-flash.srec
|
||||||
$(CP) $(KDIR)/kernel.ram.srec $(BIN_DIR)/openwrt-$(BOARD)-vmlinux-ram.srec
|
$(CP) $(KDIR)/kernel.ram.srec $(BIN_DIR)/openwrt-$(BOARD)-vmlinux-ram.srec
|
||||||
|
@ -31,7 +31,7 @@ define Build/Compile
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Install
|
define Build/Install
|
||||||
$(CP) $(PKG_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(STAGING_DIR_HOST)/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
Loading…
Reference in New Issue
Block a user