File: rules

package info (click to toggle)
open-ath9k-htc-firmware 1.4.0-110-ge888634%2Bdfsg1-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,132 kB
  • sloc: ansic: 23,740; perl: 2,764; xml: 44; makefile: 25; sh: 22
file content (26 lines) | stat: -rwxr-xr-x 887 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
26
#!/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
export DEB_CFLAGS_MAINT_APPEND=-Wno-error=discarded-qualifiers

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