Build directory-based installers

- move default installer to 'swi' directory
- add BOOTMODE salt to deb and installer name
This commit is contained in:
Carl D. Roth
2016-05-26 14:07:33 -07:00
parent e17ea293e2
commit 14870ac7b7
36 changed files with 52 additions and 6 deletions

View File

@@ -1 +0,0 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=amd64

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1,2 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=amd64 BOOTMODE=INSTALLED

View File

@@ -0,0 +1,3 @@
BOOTMODE=INSTALLED
include $(ONL)/make/config.amd64.mk
include $(ONL)/builds/any/installer/grub/builds/Makefile

View File

@@ -0,0 +1,4 @@
NETDEV=ma1
NETAUTO=dhcp
BOOTMODE=INSTALLED
SWI=images::latest

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=amd64 BOOTMODE=swi

View File

@@ -1,2 +1,3 @@
BOOTMODE=SWI
include $(ONL)/make/config.amd64.mk
include $(ONL)/builds/any/installer/grub/builds/Makefile

View File

@@ -10,7 +10,7 @@ common:
maintainer: support@bigswitch.com
packages:
- name: onl-installer
- name: onl-installer-$BOOTMODE
summary: Open Network Linux $ARCH Installer
files:

View File

@@ -2,6 +2,10 @@ ifndef ARCH
$(error $$ARCH not set)
endif
ifndef BOOTMODE
$(error $$BOOTMODE not set)
endif
ONLPLATFORM = python $(ONL)/tools/onlplatform.py
PLATFORMS := $(shell $(ONLPM) --platform-manifest onl-loader-initrd:$(ARCH))
@@ -11,7 +15,7 @@ MKSHAR_PERMS = autoperms.sh
# Hardcoded to match ONL File naming conventions.
include $(ONL)/make/version-onl.mk
INSTALLER_NAME=$(FNAME_PRODUCT_VERSION)_ONL-OS_$(FNAME_BUILD_ID)_$(UARCH)_INSTALLER
INSTALLER_NAME=$(FNAME_PRODUCT_VERSION)_ONL-OS_$(FNAME_BUILD_ID)_$(UARCH)_$(BOOTMODE)_INSTALLER
ifeq ($(ARCH), amd64)
INSTALLER_ARCH = x86_64

View File

@@ -2,6 +2,10 @@ ifndef ARCH
$(error $$ARCH not set)
endif
ifndef BOOTMODE
$(error $$BOOTMODE not set)
endif
ONLPLATFORM = python $(ONL)/tools/onlplatform.py
PLATFORMS := $(shell $(ONLPM) --platform-manifest onl-loader-initrd:$(ARCH))
@@ -15,7 +19,7 @@ PYFIT_ENVIRONMENT = PYTHONPATH=$(VONLDIR)/src/python
# Hardcoded to match ONL File naming conventions.
include $(ONL)/make/version-onl.mk
INSTALLER_NAME=$(FNAME_PRODUCT_VERSION)_ONL-OS_$(FNAME_BUILD_ID)_$(UARCH)_INSTALLER
INSTALLER_NAME=$(FNAME_PRODUCT_VERSION)_ONL-OS_$(FNAME_BUILD_ID)_$(UARCH)_$(BOOTMODE)_INSTALLER
# default fit image can be used as the canonical location for the initrd
FIT_IMAGE_ALL := $(shell $(ONLPM) --find-file onl-loader-fit:$(ARCH) onl-loader-fit.itb)

View File

@@ -1 +0,0 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=armel

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=armel BOOTMODE=installed

View File

@@ -0,0 +1,3 @@
BOOTMODE=INSTALLED
include $(ONL)/make/config.armel.mk
include $(ONL)/builds/any/installer/uboot/builds/Makefile

View File

@@ -0,0 +1,4 @@
NETDEV=ma1
NETAUTO=dhcp
BOOTMODE=INSTALLED
SWI=images::latest

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=armel BOOTMODE=swi

View File

@@ -0,0 +1 @@
*INSTALLER

View File

@@ -1,2 +1,3 @@
BOOTMODE=SWI
include $(ONL)/make/config.armel.mk
include $(ONL)/builds/any/installer/uboot/builds/Makefile

View File

@@ -1 +0,0 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=powerpc

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=powerpc BOOTMODE=INSTALLED

View File

@@ -0,0 +1 @@
*INSTALLER

View File

@@ -0,0 +1,3 @@
BOOTMODE=INSTALLED
include $(ONL)/make/config.powerpc.mk
include $(ONL)/builds/any/installer/uboot/builds/Makefile

View File

@@ -0,0 +1,4 @@
NETDEV=ma1
NETAUTO=dhcp
BOOTMODE=INSTALLED
SWI=images::latest

View File

@@ -0,0 +1 @@
include $(ONL)/make/pkg.mk

View File

@@ -0,0 +1,2 @@
!include $ONL/builds/any/installer/APKG.yml ARCH=powerpc BOOTMODE=swi

View File

@@ -0,0 +1 @@
*INSTALLER

View File

@@ -1,2 +1,3 @@
BOOTMODE=SWI
include $(ONL)/make/config.powerpc.mk
include $(ONL)/builds/any/installer/uboot/builds/Makefile