Improve EFI detection by checking for /sys/firmware/efi
[grml-debootstrap.git] / packer / Makefile
1 GRML_DEBOOTSTRAP_VERSION=latest
2 GRML_DEBOOTSTRAP_LOCAL_PATH=$(shell pwd)/local_dir
3
4 compile: fake-uname.so
5
6 install:
7         cd .. && make DESTDIR=packer/local_dir install
8
9 clean:
10         rm -rf local_dir
11
12 fake-uname.so:
13         gcc -shared -fPIC -ldl fake-uname.c -o fake-uname.so
14
15 # Debian 11
16 bullseye: fake-uname.so clean install
17         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
18
19 # Debian 10
20 buster: fake-uname.so clean install
21         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
22
23 # Debian 9
24 stretch: fake-uname.so clean install
25         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
26
27 # Debian 8
28 jessie: fake-uname.so clean install
29         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
30
31 # Debian 7
32 wheezy: fake-uname.so clean install
33         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
34
35 # Debian 6.0
36 squeeze: fake-uname.so clean install
37         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
38
39 # Debian 5.0
40 lenny: fake-uname.so clean install
41         packer build -var debian_version=$@ -var grml_debootstrap_version=$(GRML_DEBOOTSTRAP_VERSION) -var grml_debootstrap_local_path=$(GRML_DEBOOTSTRAP_LOCAL_PATH) debian64.json
42
43 .PHONY: compile bullseye buster stretch jessie wheezy squeeze lenny