Skip to contentSkip to conversation

Pull request for branch yem/no-custom-help

GIT PULL New Yann E. MORIN 2 participants 5 messages Apr 16, 2016 – Apr 17, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

Hello All!

This small series reverts the recently introduced custom help feature, because it can not be correctly implemented without dirty hacks.

The issue is that the external.mk makefile is only sourced when the $(O) directory is already configured (i.e. when there is a .config file).

So, in an unconfigutred $(O) directory, the custom help would not be displayed. Fixing that would require that we either:
- move the custom help to its own .mk file (eek!), or
- be able to source external.mk unconditionally.

While the first solution is definitely trivial to implement (and was implemented with patches posted to the list), it is definitely not nice. It xcomplexifies the br2-external tree needlessly.

Assessing the implacts of the second solution is however a very complex topic, and definitely not trivial.

In the end, since there is not much gained by advertising and including the custom help in the main help, just remove that.

Regards,
Yann E. MORIN.

The following changes since commit 04d0a5793fd802b1bcd091cfdd84a464d438579e:

configs/stm32f469_disco: new configuration for STM32F469 Discovery board (2016-04-16 12:44:07 +0200)

are available in the git repository at:

git://git.busybox.net/~ymorin/git/buildroot yem/no-custom-help

for you to fetch changes up to 433663cc842dbcbfbbde08d84d199682ca0b9518:

Revert "core: add the possibility to provide help for custom rules" (2016-04-16 23:14:10 +0200)

----------------------------------------------------------------
Yann E. MORIN (2):
Revert "core: also display the custom help with our main help" Revert "core: add the possibility to provide help for custom rules"

 Makefile                             | 10 +---------
 docs/manual/customize-outside-br.txt | 14 --------------
 2 files changed, 1 insertion(+), 23 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#1 lore raw

PATCH 1/2 Revert "core: also display the custom help with our main help"

This reverts commit 0a767deba004c920e7824543380cffbb298507f8.

Turns out that the custom help is not available when the $(O) directory has not been configure yet (i.e. when there is no .config already filled).

Rather than trying to work around this limitation with dirty hacks, just revert this feature. After all, this will not prevent an external.mk from providing custom help anyway; it's just not gonna be advertised nor displayed with the main help.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc J?r?me Pouiller <[email protected]>
---
 Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Makefile +2 -3
index 55735ea..d205ac9 100644
@@ -895,9 +895,7 @@ endif
 	rm -rf $(BR2_CONFIG) $(CONFIG_DIR)/.config.old $(CONFIG_DIR)/..config.tmp \
 		$(CONFIG_DIR)/.auto.deps $(BR2_EXTERNAL_FILE)
 
-help: help-internal help-custom
-
-help-internal:
+help:
 	@echo 'Cleaning:'
 	@echo '  clean                  - delete all files created by build'
 	@echo '  distclean              - delete all non-source files (including .config)'
@@ -970,6 +968,7 @@ endif
 	@echo '  source-check           - check selected packages for valid download URLs'
 	@echo '  external-deps          - list external packages used'
 	@echo '  legal-info             - generate info about license compliance'
+	@echo '  help-custom            - print help about custom actions (if any)'
 	@echo
 	@echo '  make V=0|1             - 0 => quiet build (default), 1 => verbose build'
 	@echo '  make O=dir             - Locate all output files in "dir", including .config'
Signature · 1 line
1.9.1
#3 lore raw

PATCH 2/2 Revert "core: add the possibility to provide help for custom rules"

In reply to Yann E. MORIN

This reverts commit 84c825f8e893bfb56847ab4a880c46066a41744f.

Turns out that the custom help is not available when the $(O) directory has not been configure yet (i.e. when there is no .config already filled).

Rather than trying to work around this limitation with dirty hacks, just revert this feature. After all, this will not prevent an external.mk from providing custom help anyway; it's just not gonna be advertised nor displayed with the main help.

Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc J?r?me Pouiller <[email protected]>
---
 Makefile                             |  7 -------
 docs/manual/customize-outside-br.txt | 14 --------------
 2 files changed, 21 deletions(-)
Makefile +0 -7
index d205ac9..0e4beb2 100644
@@ -968,7 +968,6 @@ endif
 	@echo '  source-check           - check selected packages for valid download URLs'
 	@echo '  external-deps          - list external packages used'
 	@echo '  legal-info             - generate info about license compliance'
-	@echo '  help-custom            - print help about custom actions (if any)'
 	@echo
 	@echo '  make V=0|1             - 0 => quiet build (default), 1 => verbose build'
 	@echo '  make O=dir             - Locate all output files in "dir", including .config'
@@ -977,12 +976,6 @@ endif
 	@echo 'it on-line at http://buildroot.org/docs.html'
 	@echo
 
-# This rule does nothing, it is expected to be overloaded by
-# a br2-external tree or a local.mk . However, it must exist,
-# as we reference it in the main help, above. Making the rule
-# .PHONY does not work.
-help-custom:
-
 list-defconfigs:
 	@echo 'Built-in configs:'
 	@$(foreach b, $(sort $(notdir $(wildcard $(TOPDIR)/configs/*_defconfig))), \
docs/manual/customize-outside-br.txt +0 -14
index be1827e..9ad177d 100644
@@ -107,17 +107,3 @@ And then in +$(BR2_EXTERNAL)/package/package1+ and
    output of +make list-defconfigs+ and allow them to be loaded with the
    normal +make <name>_defconfig+ command. They will be visible under the
    +User-provided configs+' label in the 'make list-defconfigs' output.
-
-Additionally, an +external.mk+ file may define the +help-custom+ make
-rule, to document custom make targets specific to this +BR2_EXTERNAL+
-tree. The help is completely free-form.
-
-------
-help-custom:
-    @echo 'Here goes your local help, where you may'
-    @echo 'describe some custom rules:'
-    @echo '  my-rule       - do something'
-    @echo '  my-other-rule - do something else'
-    @echo
-    @echo 'Please contact support at company.com in case of problem.'
-------
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 Revert "core: also display the custom help with our main help"

In reply to Yann E. MORIN
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

This reverts commit 0a767deba004c920e7824543380cffbb298507f8. Turns out that the custom help is not available when the $(O) directory has not been configure yet (i.e. when there is no .config already filled).

Rather than trying to work around this limitation with dirty hacks, just revert this feature. After all, this will not prevent an external.mk from providing custom help anyway; it's just not gonna be advertised nor displayed with the main help.

Quoted 4 lines
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc J?r?me Pouiller <[email protected]>

Committed, thanks.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard 
#4 lore raw

PATCH 2/2 Revert "core: add the possibility to provide help for custom rules"

In reply to Yann E. MORIN
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

This reverts commit 84c825f8e893bfb56847ab4a880c46066a41744f. Turns out that the custom help is not available when the $(O) directory has not been configure yet (i.e. when there is no .config already filled).

Rather than trying to work around this limitation with dirty hacks, just revert this feature. After all, this will not prevent an external.mk from providing custom help anyway; it's just not gonna be advertised nor displayed with the main help.

Quoted 4 lines
Cc Thomas Petazzoni <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc J?r?me Pouiller <[email protected]>

Committed, thanks.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard