Tiny Core Base > Corepure64
libre kernel
bmarkus:
Just a note, -H is nor needed when uncompressing.
curaga:
cpio is an archive format, as such if you replace the files with the same contents, the time stamp changes, and this then changes the output file. If you recompress the same tree twice in a row, without touching it, the result will be byte identical.
FilthyJack:
I see! That makes sense, but it was confusing when I needed to check if the resulting core was identical.
Well, there is also that static ldconfig version, before I try to run it I wanted to ask if this was the appropriate way to compile it:
I guess it will simply panic or throw a bunch of errors if not but...
--- Code: ---//from uClibc-0.9.33.2
make headers && make -C utils
--- End code ---
The result binary being slightly bigger than the one you compiled in corepure64.gz I guess it is statically linked.
The default from uClibc doc was:
--- Code: ---make headers && make CC="gcc -Wl,--dynamic-linker,${ldso_dir}/ld-uClibc.so.0 ${ldso_dir}/libc.so.0" -C utils
--- End code ---
Again this is a lil confusing, it looks like the second option is correct because it does specify a lib to compile against even tho its name is dynamic-linker.
Thanks a lot for the tips, I'll remove the -H option as well!
curaga:
I don't remember, it's been years. Probably I built everything and just copied the binary. It's strictly a size optimization - glibc's ldconfig works perfectly, it's just 10x as large.
FilthyJack:
It was actually the bigger executable size which was static so no problems, my version of uClibc is different but the exe can be stripped and reduced in size to almost match the one you had in corepure64.gz. I also had to recompile kernel modules when I changed the toolchain but I think this is normal.
I'm not really used to publishing stuff on wikis, I guess I could post some kind of easy step by step to expose components present in a core release. With the scripts I use to manipulate core/kernel/deblob/extensions. Is this what you had in mind?
Thanks for your help curaga, really appreciate.
bmarkus: Removed "-H newc" from the uncompressing command and it still works perfectly, thanks :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version