1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
include /usr/share/dpkg/architecture.mk
%:
dh $@
override_dh_auto_build:
echo 'blhc: ignore-line-regexp: arm-none-eabi-gcc .* -o (fel-sdboot|jtag-loop|uart0-helloworld-sdboot)\.elf .*'
$(MAKE) -C thunks CROSS_COMPILE=arm-none-eabi-
dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" tools
mkimage -A arm -T script -d bin/ramboot.uboot-sh ramboot.scr
$(MAKE) CROSS_COMPILE=arm-none-eabi- binfiles
override_dh_auto_install: PKG := debian/sunxi-tools
override_dh_auto_install:
$(MAKE) install-tools DESTDIR=$(CURDIR)/$(PKG) PREFIX=/usr
install -m0644 ramboot.scr $(PKG)/usr/share/sunxi-tools/ramboot.scr
install -m0644 fel-sdboot.sunxi $(PKG)/usr/share/sunxi-tools/fel-sdboot.sunxi
install -m0644 jtag-loop.sunxi $(PKG)/usr/share/sunxi-tools/jtag-loop.sunxi
install -m0644 uart0-helloworld-sdboot.sunxi $(PKG)/usr/share/sunxi-tools/uart0-helloworld-sdboot.sunxi
|