File: rules

package info (click to toggle)
open-ath9k-htc-firmware 1.4.0-108-gd856466%2Bdfsg1-1.3%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,124 kB
  • sloc: ansic: 23,739; perl: 2,764; xml: 45; makefile: 24; sh: 22
file content (25 lines) | stat: -rwxr-xr-x 824 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
24
25
#!/usr/bin/make -f
export DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include debian/cross-toolchain.mk

# Stack protector needs to be disabled since that entails linking to libssp.
# Other hardening flags likewise cause more problems than they solve.
export DEB_BUILD_MAINT_OPTIONS=hardening=-all

FW_FILENAME_VER = 1.4.0

%:
	CROSS_COMPILE="$(toolchain_dir)/bin/xtensa-elf-" \
	dh $@ --buildsystem=makefile --sourcedirectory=target_firmware

override_dh_auto_build: $(stamp)gcc_xtensa-elf
	dh_auto_build --

execute_before_dh_install:
	if [ -f target_firmware/htc_9271.fw ]; \
	then mv target_firmware/htc_9271.fw target_firmware/htc_9271-$(FW_FILENAME_VER).fw; \
	fi
	if [ -f target_firmware/htc_7010.fw ]; \
	then mv target_firmware/htc_7010.fw target_firmware/htc_7010-$(FW_FILENAME_VER).fw; \
	fi