Separate base packages from customizations

The `build.packages` and `install.packages` files in the CONFIGDIR now
only need to include *additional* packages to install.  The packages
*required* for Aimee OS are always installed, listed in the
corresponding files in the source directory.
master
Dustin 2023-03-17 10:56:09 -05:00
parent 469cbb28c2
commit 6b262ca0fb
9 changed files with 28 additions and 17 deletions

View File

@ -19,7 +19,7 @@ prepare: $(O)/.prepared
$(O)/.host-tools: \
build-host-tools.sh \
$(CONFIGDIR)/host-tools.packages \
host-tools.packages \
$(shell find $(CONFIGDIR)/portage/host -type f) \
$(O)/.prepared
./build-host-tools.sh
@ -29,6 +29,8 @@ host-tools: $(O)/.host-tools
$(O)/.built: \
build.sh \
build.packages \
install.packages \
$(CONFIGDIR)/build.packages \
$(CONFIGDIR)/install.packages \
$(shell find $(CONFIGDIR)/portage/target -type f) \
@ -39,6 +41,7 @@ $(O)/.built: \
$(O)/.ready: \
build-rootfs.sh \
install.packages \
$(CONFIGDIR)/install.packages \
$(CONFIGDIR)/installonly.packages \
$(CONFIGDIR)/busybox.symlinks \

View File

@ -2,5 +2,5 @@
# vim: set sw=4 ts=4 sts=4 et :
PORTAGE_CONFIGROOT="${CONFIGDIR:=${PWD}}"/portage/host \
< "${CONFIGDIR}"/host-tools.packages xargs -ro \
< host-tools.packages xargs -ro \
emerge -vnuUj --rebuilt-binaries=y

View File

@ -21,15 +21,21 @@ ln -snf \
/var/db/repos/gentoo/profiles/${profile} \
/mnt/gentoo/etc/portage/make.profile
ROOT=/mnt/gentoo \
PORTAGE_CONFIGROOT="${CONFIGDIR}"/portage/target \
< "${CONFIGDIR}"/install.packages xargs -ro \
${target}-emerge -KvnuUDj --rebuilt-binaries=y
cat \
install.packages \
"${CONFIGDIR}"/install.packages \
| xargs -ro \
${target}-emerge \
--root=/mnt/gentoo \
--config-root="${CONFIGDIR}"/portage/target \
-KvnuUDj \
--rebuilt-binaries=y
ROOT=/mnt/gentoo \
PORTAGE_CONFIGROOT="${CONFIGDIR}"/portage/target \
< "${CONFIGDIR}"/installonly.packages xargs -ro \
${target}-emerge -vnuUDj
${target}-emerge \
--root=/mnt/gentoo \
--config-root="${CONFIGDIR}"/portage/target \
-vnuUDj
ROOT=/mnt/gentoo \
locale-gen

2
build.packages Normal file
View File

@ -0,0 +1,2 @@
sys-boot/raspberrypi-firmware
sys-boot/u-boot

View File

@ -12,6 +12,8 @@ export PORTAGE_CONFIGROOT="${CONFIGDIR}"/portage/target
${target}-emerge -vuUDj sys-apps/util-linux
cat \
build.packages \
install.packages \
"${CONFIGDIR}"/build.packages \
"${CONFIGDIR}"/install.packages \
| xargs -ro \

6
install.packages Normal file
View File

@ -0,0 +1,6 @@
net-misc/openssh
net-misc/wget
sec-policy/selinux-aimee-os
sys-apps/busybox
sys-apps/systemd
sys-fs/btrfs-progs

View File

@ -1,3 +1 @@
sys-boot/grub
sys-boot/raspberrypi-firmware
sys-boot/u-boot

View File

@ -1,6 +0,0 @@
net-misc/openssh
net-misc/wget
sec-policy/selinux-aimee-os
sys-apps/busybox
sys-apps/systemd
sys-fs/btrfs-progs