Debian update for trusty
[keystone-rtos/edma3_lld.git] / debian / rules
1 #!/usr/bin/make -f
3 export ROOTDIR=$(CURDIR)
4 export INTERNAL_SW_ROOT=$(ROOTDIR)
6 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9 ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
10   export CROSSCC=gcc
11   export CROSSAR=ar
12   export CROSSLNK=gcc
13 else
14   export CROSSCC=$(DEB_HOST_GNU_TYPE)-gcc
15   export CROSSAR=$(DEB_HOST_GNU_TYPE)-ar
16   export CROSSLNK=$(DEB_HOST_GNU_TYPE)-gcc
17 endif
19 %:
20         dh $@ 
22 override_dh_auto_build:
23         $(MAKE) -C packages PLATFORM=tci6636k2h-evm TARGET=a15 TOOLCHAIN_a15=GCC FORMAT=ELF SONAME=libedma3.so libs
25 override_dh_auto_clean:
26         $(MAKE) -C packages PLATFORM=tci6636k2h-evm TARGET=a15 TOOLCHAIN_a15=GCC FORMAT=ELF SONAME=libedma3.so clean