* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
@ 2014-02-04 21:25 Martin Bark
2014-02-17 7:06 ` Arnout Vandecappelle
0 siblings, 1 reply; 7+ messages in thread
From: Martin Bark @ 2014-02-04 21:25 UTC (permalink / raw)
To: buildroot
This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
iso9660 file system.
Signed-off-by: Martin Bark <martin@barkynet.com>
---
fs/iso9660/Config.in | 16 +++++++++++++++-
fs/iso9660/iso9660.mk | 7 +++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/fs/iso9660/Config.in b/fs/iso9660/Config.in
index 50b4377..f429b4f 100644
--- a/fs/iso9660/Config.in
+++ b/fs/iso9660/Config.in
@@ -8,11 +8,25 @@ config BR2_TARGET_ROOTFS_ISO9660
help
Build a bootable iso9660 image
+if BR2_TARGET_ROOTFS_ISO9660
+
config BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU
string "Boot menu.lst file"
- depends on BR2_TARGET_ROOTFS_ISO9660
default "fs/iso9660/menu.lst"
+config BR2_TARGET_ROOTFS_ISO9660_OVERLAY
+ string "iso9660 filesystem overlay directories"
+ default ""
+ help
+ Specify a list of directories that are copied over the root of the
+ iso filesystem after the build has finished and before it is
+ packed into the iso filesystem image.
+
+ They are copied as-is into the iso image, excluding files ending
+ with ~ and .git, .svn and .hg directories.
+
+endif
+
comment "iso image needs a Linux kernel to be built"
depends on BR2_i386 || BR2_x86_64
depends on !BR2_LINUX_KERNEL
diff --git a/fs/iso9660/iso9660.mk b/fs/iso9660/iso9660.mk
index a6a9c95..1d0e5e0 100644
--- a/fs/iso9660/iso9660.mk
+++ b/fs/iso9660/iso9660.mk
@@ -27,6 +27,13 @@ ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
else
cp $(BINARIES_DIR)/rootfs.cpio$(ROOTFS_CPIO_COMPRESS_EXT) $(ISO9660_TARGET_DIR)/initrd
endif
+
+ @$(foreach d, $(call qstrip,$(BR2_TARGET_ROOTFS_ISO9660_OVERLAY)), \
+ $(call MESSAGE,"Copying iso9660 overlay $(d)"); \
+ rsync -a --ignore-times $(RSYNC_VCS_EXCLUSIONS) \
+ --chmod=Du+w --exclude .empty --exclude '*~' \
+ $(d)/ $(ISO9660_TARGET_DIR)$(sep))
+
# Use fakeroot to pretend all target binaries are owned by root
rm -f $(FAKEROOT_SCRIPT)
echo "chown -R 0:0 $(ISO9660_TARGET_DIR)" >> $(FAKEROOT_SCRIPT)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
2014-02-04 21:25 [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories Martin Bark
@ 2014-02-17 7:06 ` Arnout Vandecappelle
2014-02-17 11:42 ` Mike Zick
2014-02-18 18:18 ` Martin Bark
0 siblings, 2 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2014-02-17 7:06 UTC (permalink / raw)
To: buildroot
On 04/02/14 22:25, Martin Bark wrote:
> This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
> is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
> iso9660 file system.
>
> Signed-off-by: Martin Bark <martin@barkynet.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
I haven't tried it but it looks obviously-correct.
Jean Sergemoel has a patch in the queue that does a similar thing (in
addition to a few more changes). Jean, could you rebase your patches on
top of this one? And, if possible, also test if this one works for you.
If yes, add your Tested-by to this patch.
Regards,
Arnout
> ---
> fs/iso9660/Config.in | 16 +++++++++++++++-
> fs/iso9660/iso9660.mk | 7 +++++++
> 2 files changed, 22 insertions(+), 1 deletion(-)
>
> diff --git a/fs/iso9660/Config.in b/fs/iso9660/Config.in
> index 50b4377..f429b4f 100644
> --- a/fs/iso9660/Config.in
> +++ b/fs/iso9660/Config.in
> @@ -8,11 +8,25 @@ config BR2_TARGET_ROOTFS_ISO9660
> help
> Build a bootable iso9660 image
>
> +if BR2_TARGET_ROOTFS_ISO9660
> +
> config BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU
> string "Boot menu.lst file"
> - depends on BR2_TARGET_ROOTFS_ISO9660
> default "fs/iso9660/menu.lst"
>
> +config BR2_TARGET_ROOTFS_ISO9660_OVERLAY
> + string "iso9660 filesystem overlay directories"
> + default ""
> + help
> + Specify a list of directories that are copied over the root of the
> + iso filesystem after the build has finished and before it is
> + packed into the iso filesystem image.
> +
> + They are copied as-is into the iso image, excluding files ending
> + with ~ and .git, .svn and .hg directories.
> +
> +endif
> +
> comment "iso image needs a Linux kernel to be built"
> depends on BR2_i386 || BR2_x86_64
> depends on !BR2_LINUX_KERNEL
> diff --git a/fs/iso9660/iso9660.mk b/fs/iso9660/iso9660.mk
> index a6a9c95..1d0e5e0 100644
> --- a/fs/iso9660/iso9660.mk
> +++ b/fs/iso9660/iso9660.mk
> @@ -27,6 +27,13 @@ ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
> else
> cp $(BINARIES_DIR)/rootfs.cpio$(ROOTFS_CPIO_COMPRESS_EXT) $(ISO9660_TARGET_DIR)/initrd
> endif
> +
> + @$(foreach d, $(call qstrip,$(BR2_TARGET_ROOTFS_ISO9660_OVERLAY)), \
> + $(call MESSAGE,"Copying iso9660 overlay $(d)"); \
> + rsync -a --ignore-times $(RSYNC_VCS_EXCLUSIONS) \
> + --chmod=Du+w --exclude .empty --exclude '*~' \
> + $(d)/ $(ISO9660_TARGET_DIR)$(sep))
> +
> # Use fakeroot to pretend all target binaries are owned by root
> rm -f $(FAKEROOT_SCRIPT)
> echo "chown -R 0:0 $(ISO9660_TARGET_DIR)" >> $(FAKEROOT_SCRIPT)
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
2014-02-17 7:06 ` Arnout Vandecappelle
@ 2014-02-17 11:42 ` Mike Zick
2014-02-17 12:02 ` Arnout Vandecappelle
2014-02-18 18:18 ` Martin Bark
1 sibling, 1 reply; 7+ messages in thread
From: Mike Zick @ 2014-02-17 11:42 UTC (permalink / raw)
To: buildroot
On Mon, 17 Feb 2014 08:06:17 +0100
Arnout Vandecappelle <arnout@mind.be> wrote:
> On 04/02/14 22:25, Martin Bark wrote:
> > This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
> > is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
> > iso9660 file system.
> >
>
Since Buildroot only builds root filesystems for the target device,
it would probably be safe to drop the "TARGET_" distinction from
that variable name.
Mike
> > Signed-off-by: Martin Bark <martin@barkynet.com>
>
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>
> I haven't tried it but it looks obviously-correct.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
2014-02-17 11:42 ` Mike Zick
@ 2014-02-17 12:02 ` Arnout Vandecappelle
0 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2014-02-17 12:02 UTC (permalink / raw)
To: buildroot
On 17/02/14 12:42, Mike Zick wrote:
> On Mon, 17 Feb 2014 08:06:17 +0100
> Arnout Vandecappelle <arnout@mind.be> wrote:
>
>> On 04/02/14 22:25, Martin Bark wrote:
>>> This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
>>> is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
>>> iso9660 file system.
>>>
>>
>
> Since Buildroot only builds root filesystems for the target device,
> it would probably be safe to drop the "TARGET_" distinction from
> that variable name.
Agreed, but that should not be done in this patch. All the rootfs stuff
is currently using the BR2_TARGET_ROOTFS_ prefix, so this patch should
stick with that convention.
Regards,
Arnout
>
> Mike
>
>>> Signed-off-by: Martin Bark <martin@barkynet.com>
>>
>> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>>
>> I haven't tried it but it looks obviously-correct.
>
>
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
2014-02-17 7:06 ` Arnout Vandecappelle
2014-02-17 11:42 ` Mike Zick
@ 2014-02-18 18:18 ` Martin Bark
2014-02-27 18:13 ` Jean Sorgemoel
1 sibling, 1 reply; 7+ messages in thread
From: Martin Bark @ 2014-02-18 18:18 UTC (permalink / raw)
To: buildroot
On 17/02/14 07:06, Arnout Vandecappelle wrote:
> On 04/02/14 22:25, Martin Bark wrote:
>> This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
>> is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
>> iso9660 file system.
>>
>> Signed-off-by: Martin Bark <martin@barkynet.com>
>
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>
> I haven't tried it but it looks obviously-correct.
>
> Jean Sergemoel has a patch in the queue that does a similar thing (in
> addition to a few more changes). Jean, could you rebase your patches on
> top of this one? And, if possible, also test if this one works for you.
> If yes, add your Tested-by to this patch.
Arnout,
Thanks for the review. Yes by some strange coincidence both Jean and
myself sent patches for the iso9660 file system on the same day. I
agree it would be best to rebase Jeans patches.
Jean,
Let me know if you want any assistance on producing an updated patch set.
Thanks
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
2014-02-18 18:18 ` Martin Bark
@ 2014-02-27 18:13 ` Jean Sorgemoel
2014-03-01 20:59 ` jean.sorgemoel at laposte.net
0 siblings, 1 reply; 7+ messages in thread
From: Jean Sorgemoel @ 2014-02-27 18:13 UTC (permalink / raw)
To: buildroot
>
> On 17/02/14 07:06, Arnout Vandecappelle wrote:
>> On 04/02/14 22:25, Martin Bark wrote:
>>> This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
>>> is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
>>> iso9660 file system.
>>>
>>> Signed-off-by: Martin Bark <martin@barkynet.com>
>>
>> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>>
>> I haven't tried it but it looks obviously-correct.
>>
>> Jean Sergemoel has a patch in the queue that does a similar thing (in
>> addition to a few more changes). Jean, could you rebase your patches on
>> top of this one? And, if possible, also test if this one works for you.
>> If yes, add your Tested-by to this patch.
>
> Arnout,
>
> Thanks for the review. Yes by some strange coincidence both Jean and
> myself sent patches for the iso9660 file system on the same day. I
> agree it would be best to rebase Jeans patches.
>
>
> Jean,
>
> Let me know if you want any assistance on producing an updated patch set.
>
> Thanks
>
Hi All,
Ok, I will include that in my patch.
Regards,
Jean
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories
2014-02-27 18:13 ` Jean Sorgemoel
@ 2014-03-01 20:59 ` jean.sorgemoel at laposte.net
0 siblings, 0 replies; 7+ messages in thread
From: jean.sorgemoel at laposte.net @ 2014-03-01 20:59 UTC (permalink / raw)
To: buildroot
>>
>> On 17/02/14 07:06, Arnout Vandecappelle wrote:
>>> On 04/02/14 22:25, Martin Bark wrote:
>>>> This patch adds a variable BR2_TARGET_ROOTFS_ISO9660_OVERLAY that
>>>> is similar to BR2_ROOTFS_OVERLAY except the files are placed in the
>>>> iso9660 file system.
>>>>
>>>> Signed-off-by: Martin Bark <martin@barkynet.com>
>>>
>>> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>>>
>>> I haven't tried it but it looks obviously-correct.
>>>
>>> Jean Sergemoel has a patch in the queue that does a similar thing (in
>>> addition to a few more changes). Jean, could you rebase your patches on
>>> top of this one? And, if possible, also test if this one works for you.
>>> If yes, add your Tested-by to this patch.
>>
>> Arnout,
>>
>> Thanks for the review. Yes by some strange coincidence both Jean and
>> myself sent patches for the iso9660 file system on the same day. I
>> agree it would be best to rebase Jeans patches.
>>
>>
>> Jean,
>>
>> Let me know if you want any assistance on producing an updated patch
>> set.
>>
>> Thanks
>>
>
> Hi All,
>
> Ok, I will include that in my patch.
>
> Regards,
> Jean
Hi All,
I will send new patch to include your remark.
I use my real name (Jerome Sagnole) :)
Arnout, for your remark on default (option
BR2_TARGET_ROOTFS_ISO9660_ROCK_RIDGE)
I keep this default for compatibility because this option is activate in
old code. If you want I can suppress that.
Regards,
Jerome
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-03-01 20:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-04 21:25 [Buildroot] [PATCH 1/1] iso9660: Added support for overlay directories Martin Bark
2014-02-17 7:06 ` Arnout Vandecappelle
2014-02-17 11:42 ` Mike Zick
2014-02-17 12:02 ` Arnout Vandecappelle
2014-02-18 18:18 ` Martin Bark
2014-02-27 18:13 ` Jean Sorgemoel
2014-03-01 20:59 ` jean.sorgemoel at laposte.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox