package rosa import "hakurei.app/internal/pkg" func (t Toolchain) newToybox() pkg.Artifact { const ( version = "0.8.9" checksum = "ek4CoKxDsdS2QXuQzXfTn9ADDFjUlY4OtNC-tUiJ6WGxGdtgdLzKG_MzCIaXYcAN" ) return t.New("toybox-"+version, false, stage3Concat(t, []pkg.Artifact{}, t.Load(Make), t.Load(Bash), t.Load(KernelHeaders), ), nil, nil, ` ln -s ../system/bin/bash /bin/ || true cd /usr/src/toybox chmod +w kconfig tests rm \ tests/du.test \ tests/sed.test \ tests/tar.test export LDFLAGS="${LDFLAGS} -static" make defconfig make \ "-j$(nproc)" \ USER=cure \ tests PREFIX=/work/system/bin make install_flat `, pkg.Path(AbsUsrSrc.Append("toybox"), true, pkg.NewHTTPGetTar( nil, "https://landley.net/toybox/downloads/toybox-"+version+".tar.gz", mustDecode(checksum), pkg.TarGzip, ))) } func init() { artifactsF[Toybox] = Toolchain.newToybox }