[U-Boot] [PATCH v3 3/5] ARM: omap-common: Add standard access for board description EEPROM

Nishanth Menon nm at ti.com
Thu Nov 5 08:21:53 CET 2015


On 11/05/2015 12:00 AM, Lokesh Vutla wrote:
[...]

>> diff --git a/board/ti/common/board.h b/board/ti/common/board.h
>> new file mode 100644
>> index 000000000000..19d63cad82f9
>> --- /dev/null
>> +++ b/board/ti/common/board.h
> 
> May be keep this header file under arch/arm/include/asm/ so that it can
> be included properly.
> 
if we do something like this: then we'd not have to add cruft to the
generic location..

diff --git a/Makefile b/Makefile
index 3c21f8ddf9e9..75d5ea802dfd 100644
--- a/Makefile
+++ b/Makefile
@@ -620,6 +620,7 @@ c_flags := $(KBUILD_CFLAGS) $(cpp_flags)
 # U-Boot objects....order is important (i.e. start must be first)

 HAVE_VENDOR_COMMON_LIB = $(if $(wildcard
$(srctree)/board/$(VENDOR)/common/Makefile),y,n)
+UBOOTINCLUDE += $(if $(HAVE_VENDOR_COMMON_LIB:y=1),
-I$(srctree)/board/$(VENDOR)/common)

 libs-y += lib/
 libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/



-- 
Regards,
Nishanth Menon


More information about the U-Boot mailing list