Skip to contentSkip to conversation

ti: am335x/am437x/omap5 devices: Fix breakage when CONFIG_CMD_NET is not used

PATCH In review Franklin S Cooper Jr 3 participants 4 messages Jun 10, 2015 – Jun 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti: am335x/am437x/omap5 devices: Fix breakage when CONFIG_CMD_NET is not used

Currently there is no default value for NETARGS if CONFIG_CMD_NET=y isn't set. This results in build errors which was first discovered when trying to run make env.

By defining a blank NETARGS these errors can be avoided.

---
 include/configs/ti_armv7_common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ti_armv7_common.h +2 -1
index f882942..d1c390f 100644
@@ -301,7 +301,8 @@
 		"run netloadfdt; " \
 		"run netargs; " \
 		"bootz ${loadaddr} - ${fdtaddr}\0"
-
+#else
+#define NETARGS ""
 #endif
 
 #endif	/* __CONFIG_TI_ARMV7_COMMON_H__ */
Signature · 1 line
2.4.1
#1 lore raw

PATCH 1/1 ti: am335x/am437x/omap5 devices: Fix breakage when CONFIG_CMD_NET is not used

Quoted 16 lines · Franklin S Cooper Jr

Currently there is no default value for NETARGS if CONFIG_CMD_NET=y isn't set. This results in build errors which was first discovered when trying to run make env.

By defining a blank NETARGS these errors can be avoided.

---
 include/configs/ti_armv7_common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/configs/ti_armv7_common.h +0 -0
index f882942..d1c390f 100644

include/configs/ti_armv7_common.h

Quoted 10 lines
include/configs/ti_armv7_common.h +2 -2
@@ -301,7 +301,8 @@
 		"run netloadfdt; " \
 		"run netargs; " \
 		"bootz ${loadaddr} - ${fdtaddr}\0"
-
+#else
+#define NETARGS ""
 #endif
 
 #endif	/* __CONFIG_TI_ARMV7_COMMON_H__ */
--

Build tested for am335x_evm, am43xx_evm and omap5_uevm.

Best Regards,
Maxin

#2 lore raw

PATCH 1/1 ti: am335x/am437x/omap5 devices: Fix breakage when CONFIG_CMD_NET is not used

In reply to Franklin S Cooper Jr
Quoted 7 lines · Franklin S Cooper Jr

Currently there is no default value for NETARGS if CONFIG_CMD_NET=y isn't set. This results in build errors which was first discovered when trying to run make env.

By defining a blank NETARGS these errors can be avoided.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150610/38a695fc/attachment.sig>
#3 lore raw
In reply to Franklin S Cooper Jr
Quoted 9 lines · Franklin

Currently there is no default value for NETARGS if CONFIG_CMD_NET=y isn't set. This results in build errors which was first discovered when trying to run make env.

By defining a blank NETARGS these errors can be avoided.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150618/7cd885d3/attachment.sig>