File: rules

package info (click to toggle)
crust-firmware 0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,900 kB
  • sloc: ansic: 19,341; yacc: 596; lex: 479; makefile: 334; asm: 215; sh: 136; python: 42
file content (21 lines) | stat: -rwxr-xr-x 686 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
#!/usr/bin/make -f

verbose := $(if $(filter terse,$(DEB_BUILD_OPTIONS)),,V=1)

%:
	dh $@

# The upstream build system is designed for people building only the
# platform matching their hardware.
# Debian wants to support several platforms, but build and install
# only one representant per defconfig.
# The supported platforms and their testers are listed in
# debian/deputy.manifest.
# The following list contains the actually built platforms.
platforms := $(shell python3 debian/rules.py)

override_dh_auto_build: $(platforms)
$(platforms):
	dh_auto_build -- $(verbose) TGT=build/$@ $@_defconfig
	dh_auto_build -- $(verbose) TGT=build/$@ CROSS_COMPILE=or1k-elf- \
	  build/$@/$@.bin