File: rules

package info (click to toggle)
openhackware 0.4.1%2Bgit-20140423.c559da7c-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,056 kB
  • ctags: 2,711
  • sloc: ansic: 22,211; asm: 657; makefile: 186
file content (23 lines) | stat: -rwxr-xr-x 740 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

# We build a firmware, so we do not link to the ssp libraries
export DEB_BUILD_MAINT_OPTIONS = hardening=-stackprotector

# We build a minimalistic cross powerpc-elf toolchain in order to be able
# to build the firmware on all architectures. It might be possible to
# use the native toolchain when building on a powerpc machine, but we don't
# that to make debian/rules simpler, but also because we want the build to
# be reproducible.
include debian/cross-toolchain.mk
export CROSS_COMPILE="$(toolchain_dir)/bin/powerpc-elf-"

%:
	dh $@ --parallel

override_dh_auto_build-indep: $(stamp)gcc_powerpc-elf
	dh_auto_build

override_dh_auto_clean:
	$(MAKE) clean CROSS_COMPILE=""
	rm -fr $(toolchain_dir)
	rm -f ppc_rom.bin