mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
Makefile: only build DISTROTYPE packages
This commit is contained in:
@@ -6,12 +6,14 @@ QEMUFLAGS=-M q35 -cdrom $(ISO) -m 2G -smp cpus=1 -no-shutdown -no-reboot -monito
|
|||||||
INITRD=$(shell pwd)/iso/initrd
|
INITRD=$(shell pwd)/iso/initrd
|
||||||
DISTROTYPE=full
|
DISTROTYPE=full
|
||||||
|
|
||||||
|
MINIMALPACKAGES=mlibc bash coreutils init distro-files vim nano mount netd
|
||||||
|
|
||||||
.PHONY: all kernel clean clean-kernel iso initrd full minimal
|
.PHONY: all kernel clean clean-kernel iso initrd full minimal
|
||||||
|
|
||||||
all: jinx
|
all: jinx
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
make kernel
|
make kernel
|
||||||
./jinx build-all
|
make build-$(DISTROTYPE)
|
||||||
make $(ISO)
|
make $(ISO)
|
||||||
|
|
||||||
jinx:
|
jinx:
|
||||||
@@ -27,12 +29,18 @@ initrd:
|
|||||||
mkdir -p $(ISODIR)
|
mkdir -p $(ISODIR)
|
||||||
make $(DISTROTYPE)
|
make $(DISTROTYPE)
|
||||||
|
|
||||||
|
build-full:
|
||||||
|
./jinx build-all
|
||||||
|
|
||||||
|
build-minimal:
|
||||||
|
./jinx build $(MINIMALPACKAGES)
|
||||||
|
|
||||||
full:
|
full:
|
||||||
./jinx sysroot
|
./jinx sysroot
|
||||||
cd sysroot; tar --format=ustar -cf $(INITRD) *
|
cd sysroot; tar --format=ustar -cf $(INITRD) *
|
||||||
|
|
||||||
minimal:
|
minimal:
|
||||||
./jinx install minimalsysroot mlibc bash coreutils init distro-files vim nano mount netd
|
./jinx install $(MINIMALPACKAGES)
|
||||||
cd minimalsysroot; tar --format=ustar -cf $(INITRD) *
|
cd minimalsysroot; tar --format=ustar -cf $(INITRD) *
|
||||||
|
|
||||||
kernel:
|
kernel:
|
||||||
|
|||||||
Reference in New Issue
Block a user