-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 888 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 888 Bytes
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
27
28
29
30
31
32
33
.PHONY: *
PWD := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
AUTOFDO_PROFILE :=
ifeq ($(shell test -e $(PWD)autofdo/$(shell hostname).afdo && echo -n yes),yes)
AUTOFDO_PROFILE := $(PWD)autofdo/$(shell hostname).afdo
endif
PROPELLER_PREFIX :=
ifeq ($(shell test -e $(PWD)autofdo/propeller/$(shell hostname)_cc_profile.txt && echo -n yes),yes)
ifeq ($(shell test -e $(PWD)autofdo/propeller/$(shell hostname)_ld_profile.txt && echo -n yes),yes)
PROPELLER_PREFIX := $(PWD)autofdo/propeller/$(shell hostname)
endif
endif
all: clean update srcinfo world
clean:
rm -rf $(PWD){src,config,01*.patch,01*.revert}
update:
updpkgsums
srcinfo:
makepkg --printsrcinfo > .SRCINFO
world:
KBUILD_BUILD_USER="$(shell whoami)" \
KBUILD_BUILD_HOST="$(shell hostname)" \
KBUILD_AUTOFDO_PROFILE="$(AUTOFDO_PROFILE)" \
KBUILD_PROPELLER_PROFILE_PREFIX="$(PROPELLER_PREFIX)" \
makepkg -cfisr