diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-22 06:30:52 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:45:55 -0500 |
commit | 999159a5381bff3bd6f688c5d20fbec9d8789e53 (patch) | |
tree | d54af343e2fa905b3d97d9dd87d763a43b256067 /arch/arc/Makefile | |
parent | ee36d1722112f33725ec1a7fc02f6c46e630fd27 (diff) |
ARC: [DeviceTree] Basic support
This is minimal infrastructure needed for devicetree work.
It uses an a sample "skeleton" devicetree - embedded in kernel image -
to print the board, manufacturer by parsing the top-level "compatible"
string.
As of now we don't need any additional "board" specific "machine_desc".
TODO: support interpreting the command line as boot-loader passed dtb
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/arc/Makefile')
-rw-r--r-- | arch/arc/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 4d52a3bb68a0..29b5fcd9c4b6 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -83,6 +83,9 @@ head-y := arch/arc/kernel/head.o | |||
83 | # See arch/arc/Kbuild for content of core part of the kernel | 83 | # See arch/arc/Kbuild for content of core part of the kernel |
84 | core-y += arch/arc/ | 84 | core-y += arch/arc/ |
85 | 85 | ||
86 | # w/o this dtb won't embed into kernel binary | ||
87 | core-y += arch/arc/boot/dts/ | ||
88 | |||
86 | # w/o this ifneq, make ARCH=arc clean was crapping out | 89 | # w/o this ifneq, make ARCH=arc clean was crapping out |
87 | ifneq ($(platform-y),) | 90 | ifneq ($(platform-y),) |
88 | core-y += arch/arc/plat-$(PLATFORM)/ | 91 | core-y += arch/arc/plat-$(PLATFORM)/ |
@@ -101,6 +104,12 @@ bootpImage: vmlinux | |||
101 | uImage: vmlinux | 104 | uImage: vmlinux |
102 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 105 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
103 | 106 | ||
107 | %.dtb %.dtb.S %.dtb.o: scripts | ||
108 | $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@ | ||
109 | |||
110 | dtbs: scripts | ||
111 | $(Q)$(MAKE) $(build)=$(boot)/dts dtbs | ||
112 | |||
104 | archclean: | 113 | archclean: |
105 | $(Q)$(MAKE) $(clean)=$(boot) | 114 | $(Q)$(MAKE) $(clean)=$(boot) |
106 | 115 | ||