Skip to contentSkip to conversation

Makefile: fix cross target

PATCH New Fabio Porcedda 3 participants 6 messages Dec 20, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: fix cross target

The cross target was laking some dependency. Now it's possible to successfully use the target right after the configuration.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 4b09437..e163227 100644
@@ -697,7 +697,7 @@ ifeq ($(O),output)
 endif
 	rm -rf $(CONFIG_DIR)/.config $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/.auto.deps
 
-cross: $(BASE_TARGETS)
+cross: prepare dirs dependencies $(BASE_TARGETS)
 
 help:
 	@echo 'Cleaning:'
Signature · 1 line
1.8.0
#1 lore raw

PATCH 1/1 Makefile: fix cross target

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Hi,

Fabio> The cross target was laking some dependency. Fabio> Now it's possible to successfully use the target right Fabio> after the configuration.

The fix is fine, but what exactly is your use case for using 'make cross'? It's not documented anywhere, and I was thinking about dropping it.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 Makefile: fix cross target

Quoted 11 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Hi,

Fabio> The cross target was laking some dependency. Fabio> Now it's possible to successfully use the target right Fabio> after the configuration.

The fix is fine, but what exactly is your use case for using 'make cross'? It's not documented anywhere, and I was thinking about dropping it.

Sometimes i just want to built/prepare only the toolchain right after using a defconfig or a make clean,
to be able to use the toolchain for building specific buildroot packages or compile local source code outside buildroot without build unnecessary stuff like busybox, rootfs, etc...

If it's useful i can submit a patch to document it.

Best regards
--
Fabio Porcedda

#3 lore raw

PATCH 1/1 Makefile: fix cross target

Quoted 13 lines · Fabio Porcedda
Quoted 11 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Hi,

Fabio> The cross target was laking some dependency. Fabio> Now it's possible to successfully use the target right Fabio> after the configuration.

The fix is fine, but what exactly is your use case for using 'make cross'? It's not documented anywhere, and I was thinking about dropping it.

Quoted 7 lines

Sometimes i just want to built/prepare only the toolchain right after using a defconfig or a make clean,
to be able to use the toolchain for building specific buildroot packages or compile local source code outside buildroot without build unnecessary stuff like busybox, rootfs, etc...

If it's useful i can submit a patch to document it.

Sounds useful to me. But I'd call the target "toolchain" instead of "cross". That sounds more like what it does, doesn't it?

Best regards,
Bj?rn Forsman

#4 lore raw

PATCH 1/1 Makefile: fix cross target

Quoted 20 lines · Bj?rn Forsman
Quoted 19 lines · Fabio Porcedda
Quoted 11 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Hi,

Fabio> The cross target was laking some dependency. Fabio> Now it's possible to successfully use the target right Fabio> after the configuration.

The fix is fine, but what exactly is your use case for using 'make cross'? It's not documented anywhere, and I was thinking about dropping it.

Sometimes i just want to built/prepare only the toolchain right after using a defconfig or a make clean,
to be able to use the toolchain for building specific buildroot packages or compile local source code outside buildroot without build unnecessary stuff like busybox, rootfs, etc...

Quoted 4 lines
Quoted 1 line

If it's useful i can submit a patch to document it.

Sounds useful to me. But I'd call the target "toolchain" instead of "cross". That sounds more like what it does, doesn't it?

"toolchain" sounds better.
If it's ok i will send an updated patch to rename and document it (make help).

Best regards
--
Fabio Porcedda

#5 lore raw

PATCH 1/1 Makefile: fix cross target

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabio" == Fabio Porcedda <[email protected]> writes:

Hi,

Fabio> "toolchain" sounds better.

Fabio> If it's ok i will send an updated patch to rename and document Fabio> it (make help).

Yes, please do.

Signature · 1 line
Bye, Peter Korsgaard