]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - scripts/gdb/linux/Makefile
arm64: dts: zx296718-evb: use audio-graph-card for HDMI audio
[mirror_ubuntu-hirsute-kernel.git] / scripts / gdb / linux / Makefile
1 always := gdb-scripts
2
3 SRCTREE := $(shell cd $(srctree) && /bin/pwd)
4
5 $(obj)/gdb-scripts:
6 ifneq ($(KBUILD_SRC),)
7 $(Q)ln -fsn $(SRCTREE)/$(obj)/*.py $(objtree)/$(obj)
8 endif
9 @:
10
11 quiet_cmd_gen_constants_py = GEN $@
12 cmd_gen_constants_py = \
13 $(CPP) -E -x c -P $(c_flags) $< > $@ ;\
14 sed -i '1,/<!-- end-c-headers -->/d;' $@
15
16 targets += constants.py
17 $(obj)/constants.py: $(SRCTREE)/$(obj)/constants.py.in FORCE
18 $(call if_changed_dep,gen_constants_py)
19
20 build_constants_py: $(obj)/constants.py
21 @:
22
23 clean-files := *.pyc *.pyo $(if $(KBUILD_SRC),*.py) $(obj)/constants.py