Commonize FIT builds.

This commit is contained in:
Jeffrey Townsend
2016-04-05 16:05:22 +00:00
parent 5b375a50d7
commit c7efc16573
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
prerequisites:
packages:
- onl-buildroot-initrd:$ARCH
common:
arch: $ARCH
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-buildroot-fit
version: 1.0.0
summary: Open Network Linux FIT Buildroot Image for $ARCH
files:
builds/onl-buildroot-fit.itb : $$PKG_INSTALL/
changelog: Change changes changes.,

View File

@@ -0,0 +1,13 @@
ifndef ARCH
$(error $$ARCH not set)
endif
.PHONY: onl-buildroot-fit.itb onl-buildroot-fit.its
onl-buildroot-fit.itb:
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:$(ARCH),onl-buildroot-initrd-$(ARCH).cpio.gz --arch $(ARCH) --add-platform all --itb $@
onl-buildroot-fit.its:
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:$(ARCH),onl-buildroot-initrd-$(ARCH).cpio.gz --arch $(ARCH) --add-platform all --its $@
its: onl-buildroot-fit.its

View File

@@ -0,0 +1,20 @@
prerequisites:
packages:
- onl-loader-initrd:$ARCH
common:
arch: $ARCH
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-loader-fit
version: 1.0.0
summary: Open Network Linux FIT Loader Image for $ARCH
files:
builds/onl-loader-fit.itb : /etc/onl/upgrade/$ARCH/
builds/manifest.json : /etc/onl/upgrade/$ARCH/
changelog: Change changes changes.,

View File

@@ -0,0 +1,14 @@
ifndef ARCH
$(error $$ARCH must be set)
endif
.PHONY: onl-loader-fit.itb onl-loader-fit.its
onl-loader-fit.itb:
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:$(ARCH),onl-loader-initrd-$(ARCH).cpio.gz --arch $(ARCH) --add-platform initrd --itb $@
$(ONLPM) --copy-file onl-loader-initrd:$(ARCH) manifest.json .
onl-loader-fit.its:
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:$(ARCH),onl-loader-initrd-$(ARCH).cpio.gz --arch $(ARCH) --add-platform initrd --its $@
its: onl-loader-fit.its