Petitboot is a kexec-based bootloader intended primarily for use on PlayStation 3, where we put a kernel+initrd into flash to act as a bootloader. In such a system we need a very minimal busybox, using something like the attached config. Please could we build a 'busybox-petitboot' subpackage for it, just like we do for the 'busybox-anaconda' subpackage?
Created attachment 151922 [details] config file for petitboot
It seems that the addition of -lsepol to $(cmd_link) in Rules.mak, which is done by busybox-1.2.0-selinux.patch, isn't actually needed. It gets added to $(LIBRARIES) anyway. Removing that makes the minimal busybox.petitboot no longer link against libsepol -- while the other two builds do still link against it correctly. Having done that, we can remove busybox-1.2.0-gcc41.patch entirely -- it doesn't do anything except add a single space on the line previously modified by the selinux patch.
Created attachment 151923 [details] CVS repository patch.
I think you have to turn off CONFIG_BUILD_AT_ONCE (in busybox-petitboot.config) because it fails otherwise. It would save about 30KiB though, so I'll look into fixing it at some point.
Created attachment 152088 [details] correct config file This is the config file to use.