root/current/target/trunk/b/busybox/trunk/emdebian-rules.patch
| Revision 4335, 2.8 kB (checked in by codehelp, 6 months ago) |
|---|
-
debian/rules
old new 6 6 SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p') 7 7 VERSION_DEBIAN := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p') 8 8 VERSION := $(shell echo "$(VERSION_DEBIAN)" | sed -e 's,^[^:]*:,,' -e 's,-[^-]*$$,,') 9 9 DEB_HOST_GNU_TYPE=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 10 DEB_BUILD_GNU_TYPE=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 11 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) 12 CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc 13 endif 14 10 15 BUILD_DIR = debian/build 11 16 STAMPS_DIR = debian/stamps 12 17 … … 31 36 rm -rf '$(DIR)' 32 37 cp -al '$(SOURCE_DIR)' '$(DIR)' 33 38 cp debian/config/config.$* '$(DIR)'/.config 34 make -C '$(DIR)' oldconfig39 make $(CROSS) -C '$(DIR)' oldconfig 35 40 touch $@ 36 41 37 42 build: $(STAMPS_DIR)/build_deb $(STAMPS_DIR)/build_static $(STAMPS_DIR)/build_udeb … … 39 44 $(STAMPS_DIR)/build_%: DIR=$(BUILD_DIR)/build_$* 40 45 $(STAMPS_DIR)/build_%: $(STAMPS_DIR)/setup_% 41 46 dh_testdir 42 make -C '$(DIR)' busybox docs/busybox.1 BB_EXTRA_VERSION="$(shell lsb_release -is) $(VERSION_DEBIAN)"47 make $(CROSS) -C '$(DIR)' busybox docs/busybox.1 BB_EXTRA_VERSION="$(shell lsb_release -is) $(VERSION_DEBIAN)" 43 48 touch $@ 44 49 45 50 $(BUILD_DIR) $(STAMPS_DIR): … … 57 62 58 63 binary-arch: binary-arch_deb binary-arch_static binary-arch_udeb 59 64 65 binary-arch_deb: PACKAGE = busybox 60 66 binary-arch_deb: DIR = $(BUILD_DIR)/build_deb 67 binary-arch_deb: OUT_DIR = $(CURDIR)/debian/$(PACKAGE)/ 61 68 binary-arch_deb: export DH_OPTIONS = -pbusybox 62 69 binary-arch_deb: $(STAMPS_DIR)/build_deb 63 70 dh_testdir 64 71 dh_testroot 65 72 dh_clean -k -d 73 $(MAKE) $(CROSS) -C $(DIR) install CONFIG_PREFIX=$(OUT_DIR) 66 74 dh_install --sourcedir=$(DIR) 67 $(MAKE) -f debian/rules binary-arch_all75 $(MAKE) $(CROSS) -f debian/rules binary-arch_all 68 76 69 77 binary-arch_static: PACKAGE = busybox-static 70 78 binary-arch_static: DIR = $(BUILD_DIR)/build_static … … 74 82 dh_testroot 75 83 dh_clean -k -d 76 84 dh_install --sourcedir=$(DIR) 77 install -D -m644 debian/$(PACKAGE).override \78 debian/$(PACKAGE)/usr/share/lintian/overrides/$(PACKAGE)79 85 $(MAKE) -f debian/rules binary-arch_all 80 86 81 87 binary-arch_udeb: PACKAGE = busybox-udeb … … 86 92 dh_testdir 87 93 dh_testroot 88 94 dh_clean -k -d 89 make -C $(DIR) install CONFIG_PREFIX=$(OUT_DIR)95 make $(CROSS) -C $(DIR) install CONFIG_PREFIX=$(OUT_DIR) 90 96 # Remove init link, but init support is still compiled in to be 91 97 # used. 92 98 rm -f $(OUT_DIR)/sbin/init 93 $(MAKE) -f debian/rules binary-arch_all99 $(MAKE) $(CROSS) -f debian/rules binary-arch_all 94 100 95 101 binary-arch_all: 96 102 dh_installdirs 97 dh_installdocs98 dh_installchangelogs99 103 dh_strip 100 104 dh_link 105 chmod u+s debian/busybox/bin/busybox 101 106 dh_compress 102 dh_fixperms 107 dh_fixperms -Xbusybox 103 108 dh_installdeb 104 109 dh_shlibdeps 105 110 dh_gencontrol
Note: See TracBrowser
for help on using the browser.
