Added support for external customization
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/make
|
#!/usr/bin/make
|
||||||
|
Customization?=Default
|
||||||
.DEFAULT_GOAL := list
|
.DEFAULT_GOAL := list
|
||||||
|
|
||||||
list: #Shows this list
|
list: #Shows this list
|
||||||
@@ -6,6 +7,7 @@ list: #Shows this list
|
|||||||
@grep '^[^#[:space:]].*:' Makefile | grep -v := | sed -e "s/:[^|]*#/: /g"
|
@grep '^[^#[:space:]].*:' Makefile | grep -v := | sed -e "s/:[^|]*#/: /g"
|
||||||
|
|
||||||
prep_buildenv: #Preperation for build (setting file permissons, etc)
|
prep_buildenv: #Preperation for build (setting file permissons, etc)
|
||||||
|
cp -rf customization/${Customization}/* config
|
||||||
chmod 600 config/includes.chroot/etc/NetworkManager/system-connections/*.nmconnection
|
chmod 600 config/includes.chroot/etc/NetworkManager/system-connections/*.nmconnection
|
||||||
|
|
||||||
install_buildenv: # Install packages required to build the image
|
install_buildenv: # Install packages required to build the image
|
||||||
@@ -42,7 +44,9 @@ clean_env: #Clear all caches and archives
|
|||||||
sudo TargetArch=i386 lb clean --all
|
sudo TargetArch=i386 lb clean --all
|
||||||
make -f Makefile.extra clean
|
make -f Makefile.extra clean
|
||||||
rm -f config/hooks/normal/0899-install-dkms-drivers.chroot
|
rm -f config/hooks/normal/0899-install-dkms-drivers.chroot
|
||||||
|
#Remove customization
|
||||||
|
rm -f config/bootloaders/grub-pc/splash.png config/bootloaders/isolinux/splash.png config/includes.chroot/etc/NetworkManager/system-connections/Template.nmconnection
|
||||||
|
rm -rf config/includes.chroot/opt/custom
|
||||||
|
|
||||||
clean_iso: #Removes genereated iso's
|
clean_iso: #Removes genereated iso's
|
||||||
rm -f Custom-image-amd64.iso Custom-image-i386.iso
|
rm -f Custom-image-amd64.iso Custom-image-i386.iso
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 821 KiB After Width: | Height: | Size: 821 KiB |
Reference in New Issue
Block a user