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
parent
469cbb28c2
commit
6b262ca0fb
5
Makefile
5
Makefile
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
sys-boot/raspberrypi-firmware
|
||||
sys-boot/u-boot
|
2
build.sh
2
build.sh
|
@ -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 \
|
||||
|
|
|
@ -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
|
|
@ -1,3 +1 @@
|
|||
sys-boot/grub
|
||||
sys-boot/raspberrypi-firmware
|
||||
sys-boot/u-boot
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue