Files
kernel/scripts/gdb/linux/Makefile
T

26 lines
667 B
Makefile
Raw Normal View History

# SPDX-License-Identifier: GPL-2.0
2015-02-17 13:46:36 -08:00
ifdef building_out_of_srctree
symlinks := $(patsubst $(srctree)/$(src)/%,%,$(wildcard $(srctree)/$(src)/*.py))
quiet_cmd_symlink = SYMLINK $@
cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(srctree))/$(src)/%,$@) $@
2021-01-20 15:23:51 +09:00
always-y += $(symlinks)
$(addprefix $(obj)/, $(symlinks)): FORCE
$(call if_changed,symlink)
2015-02-17 13:46:36 -08:00
endif
2016-05-23 16:24:40 -07:00
quiet_cmd_gen_constants_py = GEN $@
cmd_gen_constants_py = \
$(CPP) -E -x c -P $(c_flags) $< > $@ ;\
sed -i '1,/<!-- end-c-headers -->/d;' $@
2021-01-20 15:23:51 +09:00
always-y += constants.py
$(obj)/constants.py: $(src)/constants.py.in FORCE
$(call if_changed_dep,gen_constants_py)
2016-05-23 16:24:40 -07:00
clean-files := *.pyc *.pyo