kernel_platform/common (Android common kernel, android16-6.12) from opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII), unmodified. This is the kernel Sony ships, so stock-built modules (e.g. the WLAN driver, whose source is not in the archive) match it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
26 lines
634 B
Makefile
26 lines
634 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
ifdef building_out_of_srctree
|
|
|
|
symlinks := $(patsubst $(src)/%,%,$(wildcard $(src)/*.py))
|
|
|
|
quiet_cmd_symlink = SYMLINK $@
|
|
cmd_symlink = ln -fsn $(patsubst $(obj)/%,$(abspath $(src))/%,$@) $@
|
|
|
|
always-y += $(symlinks)
|
|
$(addprefix $(obj)/, $(symlinks)): FORCE
|
|
$(call if_changed,symlink)
|
|
|
|
endif
|
|
|
|
quiet_cmd_gen_constants_py = GEN $@
|
|
cmd_gen_constants_py = \
|
|
$(CPP) -E -x c -P $(c_flags) $< > $@ ;\
|
|
sed -i '1,/<!-- end-c-headers -->/d;' $@
|
|
|
|
always-y += constants.py
|
|
$(obj)/constants.py: $(src)/constants.py.in FORCE
|
|
$(call if_changed_dep,gen_constants_py)
|
|
|
|
clean-files := *.pyc *.pyo
|