Rootfs and SWI Build Cleanup

The rootfs and SWI packages are now stored separately from the base packages.
The base and platform packages are designed as inputs for the system integrator and are separated for use by
those building their own systems.

The rootfs, SWI (and soon to be installer) parts of the builds are productizations of those inputs.
When ONL is integrated as part of a larger project these rootfs and SWI packages are not used directly.
This commit is contained in:
Jeffrey Townsend
2015-12-01 05:15:02 +00:00
parent e382a15ab8
commit c3078a4fa2
20 changed files with 107 additions and 2 deletions

2
builds/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.swi
*.md5sum

1
builds/Makefile Normal file
View File

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

1
builds/amd64/rootfs/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.d/

View File

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

View File

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

1
builds/amd64/rootfs/builds/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
manifest.json

View File

@@ -0,0 +1,16 @@
include $(ONL)/make/config.amd64.mk
#
# Default to include all available amd64 platforms.
# You override this with you own list or yaml file.
#
export PLATFORM_LIST=$(shell onlpm --list-platforms --arch amd64 --csv )
RFS_CONFIG := $(ONL)/packages/base/any/rootfs/standard/standard.yml
RFS_DIR := rootfs-amd64.d
RFS_CPIO := rootfs-amd64.cpio.gz
RFS_SQUASH := rootfs-amd64.sqsh
include $(ONL)/make/rfs.mk

View File

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

2
builds/amd64/swi/PKG.yml Normal file
View File

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

View File

@@ -0,0 +1,23 @@
prerequisites:
broken: true
common:
arch: $ARCH
version: $FNAME_RELEASE_ID
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-rootfs
summary: Open Network Linux Root Filesystem
files:
builds/rootfs-$ARCH.cpio.gz : $$PKG_INSTALL/
builds/rootfs-$ARCH.sqsh : $$PKG_INSTALL/
builds/manifest.json : $$PKG_INSTALL/
changelog: Change changes changes.,

35
builds/any/swi/APKG.yml Normal file
View File

@@ -0,0 +1,35 @@
prerequisites:
broken: true
packages: [ "onl-rootfs:$ARCH" ]
common:
arch: $ARCH
version: $FNAME_RELEASE_ID
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-swi
summary: Open Network Linux Switch Image (All $ARCH) Platforms)
files:
builds/*.swi : $$PKG_INSTALL/
builds/*.md5sum : $$PKG_INSTALL/
changelog: Change changes changes.,
release:
- builds/*.swi : $ARCH/
- builds/*.md5sum : $ARCH/

View File

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

View File

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

View File

@@ -0,0 +1,2 @@
*.d/
manifest.json

View File

@@ -0,0 +1,16 @@
include $(ONL)/make/config.powerpc.mk
#
# Default to include all available powerpc platforms.
# You override this with you own list or yaml file.
#
export PLATFORM_LIST=$(shell onlpm --list-platforms --arch powerpc --csv )
RFS_CONFIG := $(ONL)/packages/base/any/rootfs/standard/standard.yml
RFS_DIR := rootfs-powerpc.d
RFS_CPIO := rootfs-powerpc.cpio.gz
RFS_SQUASH := rootfs-powerpc.sqsh
include $(ONL)/make/rfs.mk

View File

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

View File

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

View File

@@ -1,2 +0,0 @@
*.swi
*.swi.md5sum