install-iso Makefile cleanup
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
43191485ed
commit
2a3f458f52
@ -5,6 +5,7 @@ kver=2.6.27-ARCH
|
|||||||
ARCH=i686
|
ARCH=i686
|
||||||
|
|
||||||
WORKDIR=work
|
WORKDIR=work
|
||||||
|
BOOTLOADER=grub-gfx
|
||||||
|
|
||||||
PWD=`pwd`
|
PWD=`pwd`
|
||||||
FTPname=$(PWD)/archlinux-$(ver)-ftp-$(ARCH)
|
FTPname=$(PWD)/archlinux-$(ver)-ftp-$(ARCH)
|
||||||
@ -14,36 +15,43 @@ all: core-iso core-usb ftp-iso ftp-usb
|
|||||||
all-iso: core-iso ftp-iso
|
all-iso: core-iso ftp-iso
|
||||||
all-usb: core-usb ftp-usb
|
all-usb: core-usb ftp-usb
|
||||||
|
|
||||||
core-usb: core-pkgs overlay
|
core-usb: core-pkgs overlay $(BOOTLOADER)
|
||||||
mkarchiso -v -p grub-gfx usb $(WORKDIR) $(FTPname).iso
|
mkarchiso -p $(BOOTLOADER) usb $(WORKDIR) $(FTPname).iso
|
||||||
|
|
||||||
core-iso: core-pkgs overlay
|
core-iso: core-pkgs overlay $(BOOTLOADER)
|
||||||
mkarchiso -v -p grub-gfx iso $(WORKDIR) $(FTPname).iso
|
mkarchiso -p $(BOOTLOADER) iso $(WORKDIR) $(FTPname).iso
|
||||||
|
|
||||||
ftp-usb: overlay
|
ftp-usb: overlay $(BOOTLOADER)
|
||||||
mkarchiso -v -p grub-gfx usb $(WORKDIR) $(FTPname).img
|
mkarchiso -p $(BOOTLOADER) usb $(WORKDIR) $(FTPname).img
|
||||||
|
|
||||||
ftp-iso: overlay
|
ftp-iso: overlay $(BOOTLOADER)
|
||||||
mkarchiso -v -p grub-gfx iso $(WORKDIR) $(FTPname).iso
|
mkarchiso -p $(BOOTLOADER) iso $(WORKDIR) $(FTPname).iso
|
||||||
|
|
||||||
overlay: base-iso
|
overlay: base-iso
|
||||||
cp -r overlay $(WORKDIR)/
|
cp -r overlay $(WORKDIR)/
|
||||||
|
|
||||||
root-image:
|
root-image:
|
||||||
mkarchiso -v -p "`cat packages.list-$(ARCH)`" create $(WORKDIR)
|
mkarchiso -p "`cat packages.list-$(ARCH)` $(BOOTLOADER)" create $(WORKDIR)
|
||||||
|
|
||||||
base-iso: root-image
|
base-iso: root-image
|
||||||
mv $(WORKDIR)/root-image/boot $(WORKDIR)/iso/
|
mv $(WORKDIR)/root-image/boot $(WORKDIR)/iso/
|
||||||
cp -r boot-files/* $(WORKDIR)/iso/boot/
|
cp -r boot-files/* $(WORKDIR)/iso/boot/
|
||||||
cp -r $(WORKDIR)/root-image/usr/lib/grub/i386-pc/* $(WORKDIR)/iso/boot/grub
|
|
||||||
cp -r $(WORKDIR)/root-image/usr/lib/syslinux/isolinux.bin $(WORKDIR)/iso/boot/isolinux
|
|
||||||
|
|
||||||
mkinitcpio -c initcpio-ide -b $(WORKDIR)/root-image -k $(kver) -g $(WORKDIR)/iso/boot/archiso-ide.img
|
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
|
mkinitcpio -c initcpio-pata -b $(WORKDIR)/root-image -k $(kver) -g $(WORKDIR)/iso/boot/archiso-pata.img
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
core-pkgs: base-iso
|
core-pkgs: base-iso
|
||||||
mkdir $(WORKDIR)/core-pkgs/
|
mkdir $(WORKDIR)/core-pkgs/
|
||||||
wget --mirror -P $(WORKDIR)/core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(ARCH)
|
wget --mirror -P $(WORKDIR)/core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(ARCH)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(WORKDIR) image-dir $(FTPname).img $(FTPname).iso $(COREname).img $(COREname).iso
|
rm -rf $(WORKDIR) $(FTPname).img $(FTPname).iso $(COREname).img $(COREname).iso
|
||||||
|
Loading…
Reference in New Issue
Block a user