
Add upgrades meta files to /upgrades directory in Debian ISO. Files include: version Version file to indicate the ISO release version metadata.xml Supportted upgrade path, and required patch import.sh Shell script to import the ISO load into StarlingX system pxeboot-update-<rel-ver>.sh Shell script to update pxeboot config file for new release Test cases: Build Debian ISO and visually inspect the existance of files list above in /upgrades directory of Debian ISO. Build Centos ISO with no changes. Story: 2009303 Task: 45830 Change-Id: I1f0b42c6c37943b19bdf5dd7baaf81da5d1eef7a Signed-off-by: Bin Qian <bin.qian@windriver.com>
49 lines
3.3 KiB
Makefile
49 lines
3.3 KiB
Makefile
#!/usr/bin/make -f
|
|
|
|
# export DH_VERBOSE = 1
|
|
export ROOT=$(CURDIR)/debian/tmp
|
|
export platform_release="$(shell grep SW_VERSION /usr/include/build_info.h | cut -d ' ' -f 3)"
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
sed -i "s/xxxSW_VERSIONxxx/${platform_release}/g" debian-pxe-* efi-debian-pxe-*
|
|
dh_auto_configure
|
|
|
|
override_dh_install:
|
|
install -v -d -m 755 $(ROOT)/usr/bin
|
|
install -v -d -m 755 $(ROOT)/var/pxeboot/pxelinux.cfg.files
|
|
install -v -d -m 755 $(ROOT)/var/pxeboot/rel-${platform_release}
|
|
install -v -d -m 755 $(ROOT)/usr/share/licenses/pxe-network-installer-1.0.0
|
|
|
|
# Add grub links
|
|
install -v -m 644 default $(ROOT)/var/pxeboot/pxelinux.cfg.files/default
|
|
install -v -m 644 default.static $(ROOT)/var/pxeboot/pxelinux.cfg.files/default.static
|
|
install -v -m 644 pxe-grub.cfg $(ROOT)/var/pxeboot/pxelinux.cfg.files/grub.cfg
|
|
install -v -m 644 pxe-grub.cfg.static $(ROOT)/var/pxeboot/pxelinux.cfg.files/grub.cfg.static
|
|
install -p -D -m 700 pxeboot-update.sh $(ROOT)/usr/sbin/pxeboot-update-${platform_release}.sh
|
|
|
|
# Add controller-0 pxeboot install grub menus and setup utility
|
|
install -p -D -m 644 pxeboot.cfg.debian $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxeboot.cfg.debian
|
|
install -p -D -m 644 efi-pxeboot.cfg.debian $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxeboot.cfg.debian
|
|
install -p -D -m 755 pxeboot_setup.sh $(ROOT)/usr/sbin/pxeboot_setup.sh
|
|
install -p -D -m 755 pxeboot-update.sh %{ROOT}/usr/sbin/pxeboot-update-%{platform_release}.sh
|
|
|
|
# Legacy BIOS System Node Install grub menus
|
|
install -p -D -m 700 debian-pxe-controller-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxe-controller-install-${platform_release}
|
|
install -p -D -m 700 debian-pxe-smallsystem-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxe-smallsystem-install-${platform_release}
|
|
install -p -D -m 700 debian-pxe-storage-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxe-storage-install-${platform_release}
|
|
install -p -D -m 700 debian-pxe-worker-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxe-worker-install-${platform_release}
|
|
install -p -D -m 700 debian-pxe-worker_lowlatency-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxe-worker_lowlatency-install-${platform_release}
|
|
install -p -D -m 700 debian-pxe-smallsystem_lowlatency-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/pxe-smallsystem_lowlatency-install-${platform_release}
|
|
|
|
# UEFI System Node Install grub menus
|
|
install -p -D -m 700 efi-debian-pxe-controller-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxe-controller-install-${platform_release}
|
|
install -p -D -m 700 efi-debian-pxe-smallsystem-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxe-smallsystem-install-${platform_release}
|
|
install -p -D -m 700 efi-debian-pxe-storage-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxe-storage-install-${platform_release}
|
|
install -p -D -m 700 efi-debian-pxe-worker-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxe-worker-install-${platform_release}
|
|
install -p -D -m 700 efi-debian-pxe-worker_lowlatency-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxe-worker_lowlatency-install-${platform_release}
|
|
install -p -D -m 700 efi-debian-pxe-smallsystem_lowlatency-install $(ROOT)/var/pxeboot/pxelinux.cfg.files/efi-pxe-smallsystem_lowlatency-install-${platform_release}
|
|
dh_install
|