Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
28 lines
521 B
Makefile
28 lines
521 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
export srctree := $(abspath ../../../..)
|
|
export CC := gcc
|
|
export LD := ld
|
|
export AR := ar
|
|
|
|
ex:
|
|
|
|
include $(srctree)/tools/build/Makefile.include
|
|
|
|
ex: ex-in.o libex-in.o
|
|
$(CC) -o $@ $^
|
|
|
|
ex.%: fixdep FORCE
|
|
make -f $(srctree)/tools/build/Makefile.build dir=. $@
|
|
|
|
ex-in.o: fixdep FORCE
|
|
make $(build)=ex
|
|
|
|
libex-in.o: fixdep FORCE
|
|
make $(build)=libex
|
|
|
|
clean:
|
|
find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
|
|
rm -f ex ex.i ex.s
|
|
|
|
.PHONY: FORCE
|