Skip to contentSkip to conversation

patch: target/cpio

Buildroot Applied Goetz Bock 3 participants 9 messages Nov 20, 2006 – Nov 23, 2006

lore
Share & tools
lore

Goetz Bock

author
#0 lore raw

Dear list,

this patch adds a simple cpio target, to be used with an initramfs

Config.in (working copy) renamed from Config.in (revision 16570) +1 -0
Index: target/Config.in
===================================================================
@@ -8,6 +8,7 @@
 source "target/jffs2/Config.in"
 source "target/squashfs/Config.in"
 source "target/tar/Config.in"
+source "target/cpio/Config.in"
 source "target/iso9660/Config.in"
 
 comment "bootloader for target device"
cpio/Config.in 2006-11-20 11:16:13.000000000 +0000 renamed from cpio/Config.in 1970-01-01 00:00:00.000000000 +0000 +6 -0
diff -urN target/cpio/Config.in target/cpio/Config.in
@@ -0,0 +1,6 @@
+config BR2_TARGET_ROOTFS_CPIO
+       bool "cpio the root filesystem"
+       default n
+       help
+         Build a cpio archive of the root filesystem
+
cpio/cpioroot.mk 2006-11-20 12:42:00.000000000 +0000 renamed from cpio/cpioroot.mk 1970-01-01 00:00:00.000000000 +0000 +45 -0

45 lines not on this page · raw message

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
#1 lore raw

Config.in (working copy) line 8

Quoted 10 lines

Dear list,

this patch adds a simple cpio target, to be used with an initramfs

Index: target/Config.in
===================================================================

Config.in (working copy) renamed from Config.in (revision 16570) +0 -0
@@ -8,6 +8,7 @@
 source "target/jffs2/Config.in"

Hi,

In my application, as I also use cpio on the target, then I added a cpio package that provide target and host cpio.
I use it to update the initramfs and have a simple dynamic RIM system w/o use of cramfs/unionfs.

If this could be useful, I will make a patch.

Philippe

author
#2 lore raw
Quoted 8 lines · Philippe Ney
Quoted 1 line

this patch adds a simple cpio target, to be used with an initramfs

In my application, as I also use cpio on the target, then I added a cpio package that provide target and host cpio.
I use it to update the initramfs and have a simple dynamic RIM system w/o use of cramfs/unionfs.

If this could be useful, I will make a patch.

Shure, please provide a patch.

BTW: I wonder why there are hundrets^Wdozens of buildroot forkes, all
with more up to date/additional packages and noone ever seams to provide patches on their own.
Do they think that buildroot is to unmodular that additional stuff would make it to bloated for the rest? Or is the addition just a hack, they always wanted to clean up, just never found the time to do so? Or do they simply not care?
- Just wondering.

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]
#3 lore raw
Quoted 11 lines
Quoted 8 lines
Quoted 1 line

this patch adds a simple cpio target, to be used with an initramfs

In my application, as I also use cpio on the target, then I added a cpio package that provide target and host cpio.
I use it to update the initramfs and have a simple dynamic RIM system w/o use of cramfs/unionfs.

If this could be useful, I will make a patch.

Shure, please provide a patch.

Quoted 8 lines

BTW: I wonder why there are hundrets^Wdozens of buildroot forkes, all
with more up to date/additional packages and noone ever seams to provide patches on their own.
Do they think that buildroot is to unmodular that additional stuff would make it to bloated for the rest? Or is the addition just a hack, they always wanted to clean up, just never found the time to do so? Or do they simply not care?
- Just wondering.

I use a old version of buildroot that I modified/simplified for my own needs. I don't know at this time if my additional stuff works with the current one.

It's mainly hack that often don't build automatically but need manual action. Which is sufficient for my own needs but I think it's not for beeing added in the buildroot trunk. It is also only tested on an i386 target which seems not sufficient for me to be added in buildroot, isn't it ?

For example I worked on porting perl but I didn't succeeded on having it working with dynamic loading (for modules). I have a working static perl (with static modules built-in) but it need to have a special config file that contains the static built-in modules whereas this should be more flexible. The Crypt:SSLay module need the path to OpenSSL and I give it manually, et coetera.

Philippe

#4 lore raw
In reply to Goetz Bock
Quoted 1 line

Shure, please provide a patch.

Et voil?.

Philippe

package/Config.in +1 -0
diff -Naur a/package/Config.in b/package/Config.in
@@ -34,6 +34,7 @@
 source "package/bison/Config.in"
 source "package/boa/Config.in"
 source "package/bridge/Config.in"
+source "package/cpio/Config.in"
 source "package/customize/Config.in"
 source "package/dhcp/Config.in"
 source "package/dialog/Config.in"
package/cpio/Config.in +8 -0
diff -Naur a/package/cpio/Config.in b/package/cpio/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_CPIO
+	bool "cpio"
+	default n
+	help
+	  Archiver that handles various types of cpio and tar archives
+	  (Busybox cpio doesn't support archive generation)
+
+	  http://www.gnu.org/software/cpio/
package/cpio/cpio.mk +101 -0

101 lines not on this page · raw message

#5 lore raw

package/cpio/Config.in line 6

Quoted 6 lines · Philippe Ney
package/cpio/Config.in +6 -0
+config BR2_PACKAGE_CPIO
+	bool "cpio"
+	default n
+	help
+	  Archiver that handles various types of cpio and tar archives
+	  (Busybox cpio doesn't support archive generation)

We should rather add write support to busybox's ar/cpio et al, IMO.

#6 lore raw
Quoted 9 lines

package/cpio/Config.in line 6

Quoted 6 lines
package/cpio/Config.in +6 -0
+config BR2_PACKAGE_CPIO
+	bool "cpio"
+	default n
+	help
+	  Archiver that handles various types of cpio and tar archives
+	  (Busybox cpio doesn't support archive generation)

We should rather add write support to busybox's ar/cpio et al, IMO.

Yes sure. It was just more simple for me to use the cpio sources rather than working on Busybox ones.

As this seems to be of interests for Goetz Bock, I posted.

Philippe

author
#7 lore raw
Quoted 10 lines · Philippe Ney
Quoted 9 lines

package/cpio/Config.in line 6

Quoted 6 lines
package/cpio/Config.in +6 -0
+config BR2_PACKAGE_CPIO
+	bool "cpio"
+	default n
+	help
+	  Archiver that handles various types of cpio and tar archives
+	  (Busybox cpio doesn't support archive generation)

We should rather add write support to busybox's ar/cpio et al, IMO.

Quoted 4 lines

Yes sure. It was just more simple for me to use the cpio sources rather than working on Busybox ones.

As this seems to be of interests for Goetz Bock, I posted.

And I appreciated it, thanks.

Signature · 4 lines
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2006 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]