diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2015-12-21 16:35:13 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-01-16 21:06:46 +0100 |
commit | 6479b691d73ca12a925032a056e5825ae9076d14 (patch) | |
tree | 86db0dfddbd53773054b8e8887d1a2aa135c61f2 /arch | |
parent | 0fc13a90933c064218ae3a7db5243f39f00e928f (diff) | |
download | u-boot-6479b691d73ca12a925032a056e5825ae9076d14.tar.gz u-boot-6479b691d73ca12a925032a056e5825ae9076d14.tar.xz u-boot-6479b691d73ca12a925032a056e5825ae9076d14.zip |
MIPS: Kconfig: refactor machine setup
Refactor machine setup like it is done on ARM. While on it,
also support "include <mach/file.h" for machine specific
header files.
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/mips/Makefile b/arch/mips/Makefile index 43f0f5c504..6a9f798d56 100644 --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -7,4 +7,9 @@ head-y := arch/mips/cpu/start.o libs-y += arch/mips/cpu/ libs-y += arch/mips/lib/ -libs-$(CONFIG_SOC_AU1X00) += arch/mips/mach-au1x00/ +machine-$(CONFIG_SOC_AU1X00) += au1x00 + +machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y)) +libs-y += $(machdirs) + +PLATFORM_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) |