2008-10-19 22:49:55 +02:00
|
|
|
ver=2008.10
|
|
|
|
kver=2.6.27-ARCH
|
2008-10-21 06:41:54 +02:00
|
|
|
|
|
|
|
#Define outside of 'make' for other arches
|
|
|
|
ARCH=i686
|
|
|
|
|
|
|
|
PWD=`pwd`
|
|
|
|
FTPname=$(PWD)/archlinux-$(ver)-ftp-$(ARCH)
|
|
|
|
COREname=$(PWD)/archlinux-$(ver)-core-$(ARCH)
|
2008-09-07 03:39:35 +02:00
|
|
|
|
|
|
|
all: core-iso core-usb ftp-iso ftp-usb
|
2008-10-21 06:41:54 +02:00
|
|
|
all-iso: core-iso ftp-iso
|
|
|
|
all-usb: core-usb ftp-usb
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
core-usb: core-pkgs root-image boot-files
|
|
|
|
mkarchiso -v -p grub-gfx -t disk image image-dir/ $(COREname).img
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
core-iso: core-pkgs root-image boot-files
|
|
|
|
mkarchiso -v -p grub-gfx image image-dir/ $(FTPname).iso
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
ftp-usb: root-image boot-files
|
|
|
|
mkarchiso -v -p grub-gfx -t disk image image-dir/ $(FTPname).img
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
ftp-iso: root-image boot-files
|
|
|
|
mkarchiso -v -p grub-gfx image image-dir/ $(FTPname).iso
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
.PHONY: boot-files
|
|
|
|
boot-files:
|
2008-10-25 08:30:51 +02:00
|
|
|
mkdir -p image-dir/boot/grub/
|
2008-12-09 20:00:24 +01:00
|
|
|
mkdir -p image-dir/boot/isolinux
|
2008-10-25 08:30:51 +02:00
|
|
|
#ick! this section needs reworking
|
|
|
|
cp -r work/usr/lib/grub/i386-pc/* image-dir/boot/grub
|
2008-12-09 20:00:24 +01:00
|
|
|
cp -r work/usr/lib/syslinux/isolinux.bin image-dir/boot/isolinux
|
2008-10-25 07:54:28 +02:00
|
|
|
cp -r work/boot/* image-dir/boot/
|
2008-10-21 06:41:54 +02:00
|
|
|
cp -r boot-files/* image-dir/boot/
|
2008-10-25 08:30:51 +02:00
|
|
|
#end ick
|
2008-12-09 19:58:40 +01:00
|
|
|
mkinitcpio -c initcpio-ide -b work/ -k $(kver) -g image-dir/boot/archiso_ide.img
|
|
|
|
mkinitcpio -c initcpio-pata -b work/ -k $(kver) -g image-dir/boot/archiso_pata.img
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
root-image:
|
|
|
|
mkarchiso -v -p "`cat packages.list-$(ARCH)`" install work
|
|
|
|
cp -r overlay/* work
|
2008-10-25 07:54:28 +02:00
|
|
|
chmod 0440 work/etc/sudoers
|
2008-10-21 06:41:54 +02:00
|
|
|
mkdir image-dir/
|
|
|
|
mkarchiso -v squash work image-dir/root-image.sqfs
|
2008-09-07 03:39:35 +02:00
|
|
|
|
|
|
|
# hacky way to always pull
|
2008-10-21 06:41:54 +02:00
|
|
|
.PHONY: core-pkgs
|
|
|
|
core-pkgs:
|
|
|
|
wget --mirror -P core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(ARCH)
|
2008-10-25 07:54:28 +02:00
|
|
|
mkdir image-dir/
|
2008-10-21 06:41:54 +02:00
|
|
|
mkarchiso -v squash core-pkgs image-dir/core-pkgs.sqfs
|
2008-09-07 03:39:35 +02:00
|
|
|
|
|
|
|
clean:
|
2008-10-25 08:30:51 +02:00
|
|
|
rm -rf work image-dir $(FTPname).img $(FTPname).iso $(COREname).img $(COREname).iso
|