Skip to content

Commit

Permalink
Merge pull request #2429 from larsbrinkhoff/kbuild
Browse files Browse the repository at this point in the history
Make filename: Kbuild
  • Loading branch information
arfon committed May 31, 2015
2 parents aa8cf7e + 21e249b commit a2ce197
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,7 @@ Makefile:
- .mk
filenames:
- GNUmakefile
- Kbuild
- Makefile
- makefile
interpreters:
Expand Down
23 changes: 23 additions & 0 deletions samples/Makefile/filenames/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Fail on warnings - also for files referenced in subdirs
# -Werror can be disabled for specific files using:
# CFLAGS_<file.o> := -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

0 comments on commit a2ce197

Please sign in to comment.