1 |
On Wed, 2004-08-04 at 12:36, Natanael Copa wrote: |
2 |
> Mike Frysinger wrote: |
3 |
> |
4 |
> >On Wednesday 04 August 2004 12:25 pm, Natanael Copa wrote: |
5 |
> > |
6 |
> > |
7 |
> >>BB_FILES = bin/busybox bin/sh $(shell ldd $(LIVE)/bin/busybox | awk |
8 |
> >>'{print $$3}' | sed 's:^/::') |
9 |
> >> |
10 |
> >>to grab the files so it grabbed only the links. |
11 |
> >> |
12 |
> >> |
13 |
> > |
14 |
> >but how did you copy them ? |
15 |
> >`cp -a` would copy the symlink, `cp <symlink>` should copy the file like you |
16 |
> >want |
17 |
> > |
18 |
> > |
19 |
> |
20 |
> initrd.gz: $(addprefix $(LIVE)/, $(INITRD_FILES)) |
21 |
> @echo "Making initrd.gz ===>" ;\ |
22 |
> mkdir -p $(INITRD_TMP) ;\ |
23 |
> dd if=/dev/zero of=initrd bs=1024 count=$(INITRD_SIZE) ;\ |
24 |
> $(INITRD_MKFS) initrd ;\ |
25 |
> mount -o loop initrd $(INITRD_TMP) ;\ |
26 |
> tar -C $(LIVE) -c $(INITRD_FILES) | tar -C $(INITRD_TMP) -xpv ;\ |
27 |
> umount $(INITRD_TMP) ;\ |
28 |
> rmdir $(INITRD_TMP) |
29 |
> ;\ |
30 |
> gzip -f -9 initrd ;\ |
31 |
> echo -e "<=== initrd.gz done.\n" |
32 |
> |
33 |
> I'm using tar so I get the dirs also. I'd like to keep the links, just |
34 |
> add the files the links are pointing to. |
35 |
> |
36 |
|
37 |
> btw it works!!! I got my cd running with busybox/uclibc! (I just added |
38 |
> the files manually temprarly to get going) |
39 |
|
40 |
Great.. Post it some place ;) |
41 |
|
42 |
> |
43 |
> -- |
44 |
> Natanael Copa |
45 |
> |
46 |
> -- |
47 |
> gentoo-embedded@g.o mailing list |
48 |
-- |
49 |
Ned Ludd <solar@g.o> |
50 |
Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer |