d/rules: set full hardening build options.
Louis-Philippe VĂ©ronneau
4 years ago
3 | 3 |
* Use debhelper-compat instead of debian/compat.
|
4 | 4 |
* d/control: set Rules-Requires-Root.
|
5 | 5 |
* Use the full Salsa Pipeline.
|
|
6 |
* d/rules: set full hardening build options.
|
6 | 7 |
|
7 | 8 |
-- Louis-Philippe VĂ©ronneau <pollo@debian.org> Fri, 19 Jul 2019 12:28:43 -0400
|
8 | 9 |
|
0 | 0 |
#!/usr/bin/make -f
|
|
1 |
|
|
2 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
3 |
|
|
4 |
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
|
|
5 |
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
|
|
6 |
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
|
1 | 7 |
|
2 | 8 |
%:
|
3 | 9 |
dh $@
|
|
5 | 11 |
override_dh_auto_build:
|
6 | 12 |
dh_auto_build --sourcedirectory=toboot
|
7 | 13 |
dh_auto_build --sourcedirectory=booster
|
8 | |
gcc booster/make-booster.c -o booster/make-booster
|
|
14 |
gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) booster/make-booster.c -o booster/make-booster
|
9 | 15 |
cd booster && ./make-booster ../toboot/toboot.bin toboot-booster.bin && cp toboot-booster.bin toboot-booster.dfu
|
10 | 16 |
dfu-suffix --pid 0x70b1 --vid 0x1209 --add booster/toboot-booster.dfu
|
11 | 17 |
|