Need an Introduction to Tiny Core? Or peruse Core Concepts.
EXT=somerpmmkdir /tmp/$EXT/TCZcd /tmp/$EXT/TCZrpm2cpio $EXT.rpm | cpio -i -H newc -dcd /tmp/$EXTmksquashfs $EXT $EXT.tcz -noappend