2008-12-19 05:08:38 +01:00
|
|
|
ver=2008.12
|
2008-10-19 22:49:55 +02:00
|
|
|
kver=2.6.27-ARCH
|
2008-10-21 06:41:54 +02:00
|
|
|
|
2008-12-19 05:08:38 +01:00
|
|
|
WORKDIR=work
|
|
|
|
|
2008-12-21 09:20:56 +01:00
|
|
|
ARCH?=i686
|
|
|
|
BOOTLOADER?=grub-gfx
|
|
|
|
|
|
|
|
PWD:=`pwd`
|
|
|
|
FTPname:=$(PWD)/archlinux-$(ver)-ftp-$(ARCH)
|
|
|
|
COREname:=$(PWD)/archlinux-$(ver)-core-$(ARCH)
|
|
|
|
|
|
|
|
PACKAGES="`cat packages.list` $(BOOTLOADER)"
|
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-12-23 08:36:38 +01:00
|
|
|
all-ftp: ftp-iso ftp-usb
|
|
|
|
all-core: core-iso core-usb
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-12-19 09:02:00 +01:00
|
|
|
core-usb: core-pkgs overlay $(BOOTLOADER)
|
2008-12-23 09:02:31 +01:00
|
|
|
mkarchiso -f -p $(BOOTLOADER) usb $(WORKDIR) $(FTPname).iso
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-12-19 09:02:00 +01:00
|
|
|
core-iso: core-pkgs overlay $(BOOTLOADER)
|
2008-12-23 09:02:31 +01:00
|
|
|
mkarchiso -f -p $(BOOTLOADER) iso $(WORKDIR) $(FTPname).iso
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-12-19 09:02:00 +01:00
|
|
|
ftp-usb: overlay $(BOOTLOADER)
|
2008-12-23 09:02:31 +01:00
|
|
|
mkarchiso -f -p $(BOOTLOADER) usb $(WORKDIR) $(FTPname).img
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-12-19 09:02:00 +01:00
|
|
|
ftp-iso: overlay $(BOOTLOADER)
|
2008-12-23 09:02:31 +01:00
|
|
|
mkarchiso -f -p $(BOOTLOADER) iso $(WORKDIR) $(FTPname).iso
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-12-19 05:08:38 +01:00
|
|
|
overlay: base-iso
|
|
|
|
cp -r overlay $(WORKDIR)/
|
2008-09-07 03:39:35 +02:00
|
|
|
|
2008-10-21 06:41:54 +02:00
|
|
|
root-image:
|
2008-12-23 07:53:16 +01:00
|
|
|
mkarchiso -p $(PACKAGES) create $(WORKDIR)
|
2008-12-19 05:08:38 +01:00
|
|
|
|
|
|
|
base-iso: root-image
|
|
|
|
mv $(WORKDIR)/root-image/boot $(WORKDIR)/iso/
|
|
|
|
cp -r boot-files/* $(WORKDIR)/iso/boot/
|
2008-12-21 09:20:56 +01:00
|
|
|
cp isomounts $(WORKDIR)
|
2008-12-19 05:08:38 +01:00
|
|
|
|
2008-12-21 09:20:56 +01:00
|
|
|
mkinitcpio -c initcpio-ide -b $(WORKDIR)/root-image -k $(kver) -g $(WORKDIR)/iso/boot/archiso_ide.img
|
|
|
|
mkinitcpio -c initcpio-pata -b $(WORKDIR)/root-image -k $(kver) -g $(WORKDIR)/iso/boot/archiso_pata.img
|
2008-12-19 05:08:38 +01:00
|
|
|
|
2008-12-21 09:20:56 +01:00
|
|
|
core-pkgs: base-iso
|
|
|
|
mkdir $(WORKDIR)/core-pkgs/
|
|
|
|
wget --mirror -P $(WORKDIR)/core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(ARCH)
|
|
|
|
|
|
|
|
# Bootloaders
|
2008-12-19 09:02:00 +01:00
|
|
|
grub-gfx:
|
|
|
|
cp -r $(WORKDIR)/root-image/usr/lib/grub/i386-pc/* $(WORKDIR)/iso/boot/grub
|
|
|
|
|
|
|
|
grub:
|
|
|
|
cp -r $(WORKDIR)/root-image/usr/lib/grub/i386-pc/* $(WORKDIR)/iso/boot/grub
|
|
|
|
|
|
|
|
isolinux:
|
|
|
|
cp -r $(WORKDIR)/root-image/usr/lib/syslinux/isolinux.bin $(WORKDIR)/iso/boot/isolinux
|
|
|
|
|
2008-09-07 03:39:35 +02:00
|
|
|
clean:
|
2008-12-19 09:02:00 +01:00
|
|
|
rm -rf $(WORKDIR) $(FTPname).img $(FTPname).iso $(COREname).img $(COREname).iso
|