Skip to contentSkip to conversation

tftp-hpa: fix a build failure

PATCH Applied [email protected] 2 participants 2 messages Jun 24, 2014 – Jun 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tftp-hpa: fix a build failure

From: Roy Li <[email protected]>

AR is defined as "ar cq" in MCONFIG.in, then "cq" is no longer needed in Makefile of common and libs subdir.

	#grep AR MCONFIG.in
	AR	= ar cq
	#

	#grep AR common/Makefile
	$(AR) $(LIB) $(OBJS)
	#
But MCONFIG maybe not able to be generated by MCONFIG.in, common/Makefile
allows this condition [Note the - before include]
	#grep MCONFIG common/Makefile
	-include ../MCONFIG
	#

then AR from building environment is used, but it not included the parameter "cq", and lead to below error, so add the "cq" to AR to fix this issue.
i586-wrs-linux-ar libcommon.a tftpsubs.
i586-wrs-linux-ar: two different operation options specified

---
 meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb |    2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb +2 -0
index 366a4e9..1951747 100644
@@ -32,6 +32,8 @@ SRC_URI[sha256sum] = "0a9f88d4c1c02687b4853b02ab5dd8779d4de4ffdb9b2e5c9332841304
 
 inherit autotools-brokensep update-rc.d update-alternatives
 
+export AR = "${HOST_PREFIX}ar cq"
+
 EXTRA_OECONF += "--disable-option-checking"
 
 # configure.in has errors
Signature · 1 line
1.7.10.4
#1 lore raw

Merged, thanks.
-J.

Quoted 42 lines · [[oe] [PATCH][meta-networking] tftp-hpa: fix a build failure] On 14.06.24 (Tue…

From: Roy Li <[email protected]>

AR is defined as "ar cq" in MCONFIG.in, then "cq" is no longer needed in Makefile of common and libs subdir.

	#grep AR MCONFIG.in
	AR	= ar cq
	#

	#grep AR common/Makefile
	$(AR) $(LIB) $(OBJS)
	#
But MCONFIG maybe not able to be generated by MCONFIG.in, common/Makefile
allows this condition [Note the - before include]
	#grep MCONFIG common/Makefile
	-include ../MCONFIG
	#

then AR from building environment is used, but it not included the parameter "cq", and lead to below error, so add the "cq" to AR to fix this issue.
i586-wrs-linux-ar libcommon.a tftpsubs.
i586-wrs-linux-ar: two different operation options specified

---
 meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb |    2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb +2 -0
index 366a4e9..1951747 100644
@@ -32,6 +32,8 @@ SRC_URI[sha256sum] = "0a9f88d4c1c02687b4853b02ab5dd8779d4de4ffdb9b2e5c9332841304
 
 inherit autotools-brokensep update-rc.d update-alternatives
 
+export AR = "${HOST_PREFIX}ar cq"
+
 EXTRA_OECONF += "--disable-option-checking"
 
 # configure.in has errors
Signature · 1 line
1.7.10.4
Signature · 2 lines
-Joe MacDonald.
:wq