diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 759e32732e..0ceb87d3b7 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1881,6 +1881,7 @@ Makefile: - .mk filenames: - GNUmakefile + - Kbuild - Makefile - makefile interpreters: diff --git a/samples/Makefile/filenames/Kbuild b/samples/Makefile/filenames/Kbuild new file mode 100644 index 0000000000..dd29533589 --- /dev/null +++ b/samples/Makefile/filenames/Kbuild @@ -0,0 +1,23 @@ +# Fail on warnings - also for files referenced in subdirs +# -Werror can be disabled for specific files using: +# CFLAGS_ := -Wno-error +subdir-ccflags-y := -Werror + +# platform specific definitions +include arch/mips/Kbuild.platforms +obj-y := $(platform-y) + +# make clean traverses $(obj-) without having included .config, so +# everything ends up here +obj- := $(platform-) + +# mips object files +# The object files are linked as core-y files would be linked + +obj-y += kernel/ +obj-y += mm/ +obj-y += net/ + +ifdef CONFIG_KVM +obj-y += kvm/ +endif