All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] fs/ubi: expose BINARIES_DIR to ubinize.cfg
@ 2020-06-06 10:50 Alexandre Belloni
  2020-06-06 11:46 ` Yann E. MORIN
  2020-07-05 20:59 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Alexandre Belloni @ 2020-06-06 10:50 UTC (permalink / raw)
  To: buildroot

It is often necessary to refer to other images that are present in
BINARIES_DIR from a custom ubinize configuration e.g. to include the kernel
in a UBI volume.

As for BR2_ROOTFS_UBIFS_PATH, replace BINARIES_DIR when copying the file.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 fs/ubi/ubi.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ubi/ubi.mk b/fs/ubi/ubi.mk
index d848f8b23a65..54bb81ea08a4 100644
--- a/fs/ubi/ubi.mk
+++ b/fs/ubi/ubi.mk
@@ -23,7 +23,7 @@ endif
 # don't use sed -i as it misbehaves on systems with SELinux enabled when this is
 # executed through fakeroot (see #9386)
 define ROOTFS_UBI_CMD
-	sed 's;BR2_ROOTFS_UBIFS_PATH;$@fs;' \
+	sed 's;BR2_ROOTFS_UBIFS_PATH;$@fs;;s;BINARIES_DIR;$(BINARIES_DIR);' \
 		$(UBI_UBINIZE_CONFIG_FILE_PATH) > $(BUILD_DIR)/ubinize.cfg
 	$(HOST_DIR)/sbin/ubinize -o $@ $(UBI_UBINIZE_OPTS) $(BUILD_DIR)/ubinize.cfg
 	rm $(BUILD_DIR)/ubinize.cfg
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] fs/ubi: expose BINARIES_DIR to ubinize.cfg
  2020-06-06 10:50 [Buildroot] [PATCH] fs/ubi: expose BINARIES_DIR to ubinize.cfg Alexandre Belloni
@ 2020-06-06 11:46 ` Yann E. MORIN
  2020-07-05 20:59 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2020-06-06 11:46 UTC (permalink / raw)
  To: buildroot

Alexandre, All,

On 2020-06-06 12:50 +0200, Alexandre Belloni spake thusly:
> It is often necessary to refer to other images that are present in
> BINARIES_DIR from a custom ubinize configuration e.g. to include the kernel
> in a UBI volume.
> 
> As for BR2_ROOTFS_UBIFS_PATH, replace BINARIES_DIR when copying the file.
> 
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

You forgot to update the help text to also mention this replacement, so
I did add a blurb there, and applied to master (with a rewrpaeed commit
log, too). Thanks.

Regards,
Yann E. MORIN.

> ---
>  fs/ubi/ubi.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ubi/ubi.mk b/fs/ubi/ubi.mk
> index d848f8b23a65..54bb81ea08a4 100644
> --- a/fs/ubi/ubi.mk
> +++ b/fs/ubi/ubi.mk
> @@ -23,7 +23,7 @@ endif
>  # don't use sed -i as it misbehaves on systems with SELinux enabled when this is
>  # executed through fakeroot (see #9386)
>  define ROOTFS_UBI_CMD
> -	sed 's;BR2_ROOTFS_UBIFS_PATH;$@fs;' \
> +	sed 's;BR2_ROOTFS_UBIFS_PATH;$@fs;;s;BINARIES_DIR;$(BINARIES_DIR);' \
>  		$(UBI_UBINIZE_CONFIG_FILE_PATH) > $(BUILD_DIR)/ubinize.cfg
>  	$(HOST_DIR)/sbin/ubinize -o $@ $(UBI_UBINIZE_OPTS) $(BUILD_DIR)/ubinize.cfg
>  	rm $(BUILD_DIR)/ubinize.cfg
> -- 
> 2.26.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] fs/ubi: expose BINARIES_DIR to ubinize.cfg
  2020-06-06 10:50 [Buildroot] [PATCH] fs/ubi: expose BINARIES_DIR to ubinize.cfg Alexandre Belloni
  2020-06-06 11:46 ` Yann E. MORIN
@ 2020-07-05 20:59 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-07-05 20:59 UTC (permalink / raw)
  To: buildroot

>>>>> "Alexandre" == Alexandre Belloni <alexandre.belloni@bootlin.com> writes:

 > It is often necessary to refer to other images that are present in
 > BINARIES_DIR from a custom ubinize configuration e.g. to include the kernel
 > in a UBI volume.

 > As for BR2_ROOTFS_UBIFS_PATH, replace BINARIES_DIR when copying the file.

 > Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

While not strictly a bugfix, it seems pretty simple and a sensible thing
to do, so committed to 2020.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-05 20:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-06 10:50 [Buildroot] [PATCH] fs/ubi: expose BINARIES_DIR to ubinize.cfg Alexandre Belloni
2020-06-06 11:46 ` Yann E. MORIN
2020-07-05 20:59 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.