summaryrefslogtreecommitdiff
path: root/configs/install-iso/Makefile
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-09-06 20:39:35 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-09-06 20:39:35 -0500
commit8966351b12bbcf2f8fffbd8c3a4b00e7529349b8 (patch)
treea54505adcbc029bce687788150df4383e5e936e0 /configs/install-iso/Makefile
parent99ed5349b32951fa1ec28cc2ee3caaff83fcd681 (diff)
downloadarchiso32-8966351b12bbcf2f8fffbd8c3a4b00e7529349b8.tar.xz
Split mkarchiso and configs into logical parts
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'configs/install-iso/Makefile')
-rw-r--r--configs/install-iso/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/configs/install-iso/Makefile b/configs/install-iso/Makefile
new file mode 100644
index 0000000..4af62c3
--- /dev/null
+++ b/configs/install-iso/Makefile
@@ -0,0 +1,42 @@
+ver=2008.06
+kver=2.6.25-ARCH
+carch=i686
+FTPname=$(PWD)/archlinux-$(ver)-ftp-$(carch)
+COREname=$(PWD)/archlinux-$(ver)-core-$(carch)
+
+all: core-iso core-usb ftp-iso ftp-usb
+
+core-usb: .work-core
+ mkinitcpio -c initcpio-usb-ide -b .work-core/install -k $(kver) -g .work-core/img/boot/archlive-ide.img
+ mkarchiso -v -t disk -i initcpio-usb-pata img .work-core $(COREname).img
+
+core-iso: .work-core
+ mkinitcpio -c initcpio-ide -b .work-core/install -k $(kver) -g .work-core/img/boot/archlive-ide.img
+ mkarchiso -v -t iso -i initcpio-pata img .work-core $(COREname).iso
+
+
+ftp-usb: .work-ftp
+ mkinitcpio -c initcpio-usb-ide -b .work-ftp/install -k $(kver) -g .work-ftp/img/boot/archlive-ide.img
+ mkarchiso -v -t disk -i initcpio-usb-pata img .work-ftp $(FTPname).img
+
+ftp-iso: .work-ftp
+ mkinitcpio -c initcpio-ide -b .work-ftp/install -k $(kver) -g .work-ftp/img/boot/archlive-ide.img
+ mkarchiso -v -t iso -i initcpio-pata img .work-ftp $(FTPname).iso
+
+.work-ftp:
+ chmod 0440 default-config/etc/sudoers
+ mkarchiso -v -P packages.list-$(carch) install .work-ftp
+ mkarchiso -v squash .work-ftp
+
+.work-core: addons/core-pkgs
+ chmod 0440 default-config/etc/sudoers
+ mkarchiso -v -a addons -P packages.list-$(carch) install .work-core
+ mkarchiso -v squash .work-core
+
+# hacky way to always pull
+.PHONY: addons/core-pkgs
+addons/core-pkgs:
+ wget --mirror -P addons/core-pkgs -nH --cut-dirs=3 ftp://ftp.archlinux.org/core/os/$(carch)
+
+clean:
+ rm -fr .work-ftp .work-core