Commit 053cf0e6 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Kai Germaschewski

kbuild: small toplevel makefile tidyup

- add comment about the vmlinux link components
- get rid of DRIVERS-y - always linking in sound/sound.o doesn't harm
- sort SUBDIRS in link order
- always use := to assign
- remove supeflous $(TOPDIR) for lib/lib.a
parent b63a6d5a
...@@ -177,18 +177,14 @@ ifdef CONFIG_MODULES ...@@ -177,18 +177,14 @@ ifdef CONFIG_MODULES
EXPORT_FLAGS := -DEXPORT_SYMTAB EXPORT_FLAGS := -DEXPORT_SYMTAB
endif endif
INIT =init/init.o # Link components for vmlinux
CORE_FILES =kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o # ---------------------------------------------------------------------------
NETWORKS =net/network.o SUBDIRS := init kernel mm fs ipc lib drivers sound net
INIT := init/init.o
LIBS =$(TOPDIR)/lib/lib.a CORE_FILES := kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
SUBDIRS =init kernel lib drivers mm fs net ipc sound LIBS := lib/lib.a
DRIVERS := drivers/built-in.o sound/sound.o
DRIVERS-y = drivers/built-in.o NETWORKS := net/network.o
DRIVERS-$(CONFIG_SOUND) += sound/sound.o
DRIVERS := $(DRIVERS-y)
include arch/$(ARCH)/Makefile include arch/$(ARCH)/Makefile
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment