This commit is contained in:
Jeffrey Townsend
2015-11-13 21:16:52 +00:00
parent 5aa50bc7fe
commit d57e2ac9ad
36 changed files with 412 additions and 0 deletions

1
packages/Makefile Normal file
View File

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

1
packages/base/Makefile Normal file
View File

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

View File

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

View File

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

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/initrds/buildroot/APKG.yml ARCH=amd64

View File

@@ -0,0 +1 @@
makedevs

View File

@@ -0,0 +1,27 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=onl>
#
# Copyright 2013, 2014 Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.eclipse.org/legal/epl-v10.html
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the
# License.
#
# </bsn.cl>
############################################################
#
#
############################################################
include $(ONL)/make/config.amd64.mk
export BUILDROOT_ARCH := x86_64
include $(ONL)/packages/base/any/initrds/buildroot/Makefile.any

View File

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

View File

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

View File

@@ -0,0 +1,21 @@
common:
arch: amd64
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-kernel-3.2-deb7-x86-64-all
version: 1.0.0
summary: Open Network Linux Kernel 3.2-deb7 for X86_64 Platforms.
files:
builds/kernel-3.2-deb7-x86_64-all : $$PKG_INSTALL/
builds/linux-3.2.65-1+deb7u2-mbuild : $$PKG_INSTALL/mbuilds
changelog: Change changes changes.,

View File

@@ -0,0 +1,2 @@
linux-3.2.65-1+deb7u2*
kernel-3.2-deb7-x86_64-all

View File

@@ -0,0 +1,19 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.mk
kernel:
$(MAKE) -C $(ONL)/packages/base/any/kernels/3.2.65-1+deb7u2/configs/x86_64-all K_TARGET_DIR=$(THIS_DIR) -j
clean:
rm -rf linux-3.2.65-1+deb7u2 linux-3.2.65-1+deb7u2-mbuild

View File

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

View File

@@ -0,0 +1,24 @@
prerequisites:
submodules:
- { root : $ONL, path : packages/base/any/kernels/legacy/linux-3.9.6 }
common:
arch: amd64
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-kernel-3.9.6-x86-64-all
version: 1.0.0
summary: Open Network Linux Legacy 3.9.6 Kernel for X86_64 platforms.
files:
builds/kernel-x86_64 : $$PKG_INSTALL/kernel-3.9.6-x86-64-all
builds/linux-x86_64-headers : $$PKG_INSTALL/mbuilds
changelog: Change changes changes.,

View File

@@ -0,0 +1,3 @@
kernel-x86_64
linux-x86_64-headers
linux-build-x86_64

View File

@@ -0,0 +1,35 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
THISDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.amd64.mk
all: kernel-x86_64 linux-x86_64-headers
LINUX := $(ONL)/packages/base/any/kernels/legacy/linux-3.9.6
ARCH := x86_64
kernel-x86_64: $(LINUX)/arch/x86/configs/onl_x86_64_defconfig
mkdir -p $(THISDIR)/linux-build-x86_64
$(MAKE) -C $(LINUX) onl_x86_64_defconfig O=$(THISDIR)/linux-build-x86_64
$(MAKE) -C $(LINUX) bzImage O=$(THISDIR)/linux-build-x86_64
cp $(THISDIR)/linux-build-x86_64/arch/x86/boot/bzImage $(THISDIR)/kernel-x86_64
.PHONY: linux-x86_64-headers deb
linux-x86_64-headers: $(LINUX)/arch/x86/configs/onl_x86_64_defconfig
mkdir -p $(THISDIR)/linux-x86_64-headers
cp -a $(LINUX)/include $(LINUX)/arch/x86/include $(THISDIR)/linux-x86_64-headers
$(MAKE) -C $(LINUX) ARCH=x86 O=$(THISDIR)/linux-x86_64-headers onl_x86_64_defconfig
$(MAKE) -C $(LINUX) ARCH=x86 O=$(THISDIR)/linux-x86_64-headers headers_install modules_prepare
deb:
$(MAKE) -C deb

View File

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

View File

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

View File

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

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/initrds/buildroot/APKG.yml ARCH=powerpc

View File

@@ -0,0 +1 @@
makedevs

View File

@@ -0,0 +1,26 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=onl>
#
# Copyright 2013, 2014 Big Switch Networks, Inc.
#
# Licensed under the Eclipse Public License, Version 1.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.eclipse.org/legal/epl-v10.html
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the
# License.
#
# </bsn.cl>
############################################################
#
#
############################################################
include $(ONL)/make/config.powerpc.mk
include $(ONL)/packages/base/any/initrds/buildroot/Makefile.any

View File

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

View File

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

View File

@@ -0,0 +1,21 @@
common:
arch: powerpc
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-kernel-3.2-deb7-powerpc-e500v-all
version: 1.0.0
summary: Open Network Linux Kernel 3.2-deb7 for PowerPC e500v platforms.
files:
builds/kernel-3.2-deb7-powerpc-e500v-all.bin.gz : $$PKG_INSTALL/
builds/linux-3.2.65-1+deb7u2-dtbs : $$PKG_INSTALL/dtbs
builds/linux-3.2.65-1+deb7u2-mbuild : $$PKG_INSTALL/mbuilds
changelog: Change changes changes.,

View File

@@ -0,0 +1,2 @@
linux-3.2.65-1+deb7u2*
*.bin.gz

View File

@@ -0,0 +1,19 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.mk
kernel:
$(MAKE) -C $(ONL)/packages/base/any/kernels/3.2.65-1+deb7u2/configs/powerpc-e500v-all K_TARGET_DIR=$(THIS_DIR) K_COPY_DST=kernel-3.2-deb7-powerpc-e500v-all.bin.gz
clean:
rm -rf linux-3.2.65-1+deb7u2 linux-3.2.65-1+deb7u2-mbuild linux-3.2.65-1+deb7u2-dtbs

View File

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

View File

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

View File

@@ -0,0 +1,25 @@
prerequisites:
submodules:
- { root : "${ONL}", path : packages/base/any/kernels/legacy/linux-3.8.13 }
common:
arch: powerpc
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-kernel-3.8.13-powerpc-e500mc
version: 1.0.0
summary: Open Network Linux Legacy 3.8.13 Kernel PowerPC e500mc platforms.
files:
builds/kernel-e500mc.bin.gz : $$PKG_INSTALL/kernel-3.8.13-powerpc-e500mc.bin.gz
builds/linux-e500mc-dtbs : $$PKG_INSTALL/dtbs
builds/linux-e500mc-headers : $$PKG_INSTALL/mbuilds
changelog: Change changes changes.,

View File

@@ -0,0 +1,3 @@
kernel-e500mc*
linux-build-e500mc*
linux-e500mc-*

View File

@@ -0,0 +1,69 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
COMPDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.mk
all: kernel-e500mc linux-e500mc-headers dtbs
kernel-e500mc: $(COMPDIR)/kernel-e500mc
linux-e500mc-headers: $(COMPDIR)/linux-e500mc-headers
KERNEL_AS_E500MC := $(COMPDIR)/kernel-e500mc
KERNEL_AS_E500MC_HEADERS := $(COMPDIR)/linux-e500mc-headers
DEFCONFIG := onl_e500mc_defconfig
KERNEL_DIR := $(ONL)/packages/base/any/kernels/legacy/linux-3.8.13
$(COMPDIR)/kernel-e500mc: $(KERNEL_DIR)/arch/powerpc/configs/$(DEFCONFIG)
mkdir -p $(COMPDIR)/linux-build-e500mc
$(MAKE) -C $(KERNEL_DIR) $(DEFCONFIG) ARCH=powerpc O=$(COMPDIR)/linux-build-e500mc
PATH=$$PATH:$(SWITCHLIGHT)/tools $(MAKE) -C $(KERNEL_DIR) uImage ARCH=powerpc O=$(COMPDIR)/linux-build-e500mc
powerpc-linux-gnu-strip -o $(COMPDIR)/kernel-e500mc $(COMPDIR)/linux-build-e500mc/vmlinux
cp $(COMPDIR)/linux-build-e500mc/vmlinux.bin.gz $(COMPDIR)/kernel-e500mc.bin.gz
$(COMPDIR)/linux-e500mc-headers/.done: $(KERNEL_DIR)/arch/powerpc/configs/$(DEFCONFIG)
mkdir -p $(COMPDIR)/linux-e500mc-headers
cp -a $(KERNEL_DIR)/include $(KERNEL_DIR)/arch/powerpc/include $(COMPDIR)/linux-e500mc-headers
$(MAKE) -C $(KERNEL_DIR) ARCH=powerpc O=$(COMPDIR)/linux-e500mc-headers $(DEFCONFIG)
$(MAKE) -C $(KERNEL_DIR) ARCH=powerpc O=$(COMPDIR)/linux-e500mc-headers headers_install modules_prepare arch/powerpc/lib/crtsavres.o
cp -R $(KERNEL_DIR)/scripts $(COMPDIR)/linux-e500mc-headers
cp -R $(KERNEL_DIR)/Makefile $(COMPDIR)/linux-e500mc-headers
cp -R $(KERNEL_DIR)/arch/powerpc/Makefile $(COMPDIR)/linux-e500mc-headers/arch/powerpc
touch $@
$(COMPDIR)/linux-e500mc-headers: $(COMPDIR)/linux-e500mc-headers/.done
# These are the dtb files built for this kernel configuration:
DTS_LIST := powerpc-accton-as6700-32x-r0 powerpc-accton-as5710-54x-r0 powerpc-as5710-54x-r0a powerpc-as5710-54x-r0b powerpc-accton-as6700-32x-r1 powerpc-accton-as5710-54x-r0b
DTB_LIST := $(foreach dts,$(DTS_LIST),$(COMPDIR)/linux-e500mc-dtbs/$(dts).dtb)
$(COMPDIR)/linux-e500mc-dtbs/%.dtb: $(KERNEL_DIR)/arch/powerpc/boot/dts/%.dts kernel-e500mc | $(shell mkdir -p $(COMPDIR)/linux-e500mc-dtbs)
linux-build-e500mc/scripts/dtc/dtc -I dts -O dtb -o $@ $<
dtbs: $(DTB_LIST)
.PHONY: deb
deb:
$(MAKE) -C deb

View File

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

View File

@@ -0,0 +1,25 @@
prerequisites:
submodules:
- { root : "${ONL}", path : packages/base/any/kernels/legacy/linux-3.9.6 }
common:
arch: powerpc
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-kernel-3.9.6-powerpc-e500v
version: 1.0.0
summary: Open Network Linux Legacy 3.9.6 Kernel PowerPC e500v platforms.
files:
builds/kernel-85xx.bin.gz : $$PKG_INSTALL/kernel-3.9.6-powerpc-e500v.bin.gz
builds/linux-85xx-dtbs : $$PKG_INSTALL/dtbs
builds/linux-85xx-headers : $$PKG_INSTALL/mbuilds
changelog: Change changes changes.,

View File

@@ -0,0 +1,3 @@
kernel-85xx*
linux-85xx-*
linux-build-85xx

View File

@@ -0,0 +1,69 @@
# -*- Makefile -*-
############################################################
# <bsn.cl fy=2013 v=none>
#
# Copyright 2013, 2014 BigSwitch Networks, Inc.
#
#
#
# </bsn.cl>
############################################################
BUILD_POWERPC_LINUX_85XX := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.mk
all: kernel-85xx linux-85xx-headers dtbs
kernel-85xx: $(BUILD_POWERPC_LINUX_85XX)/kernel-85xx
linux-85xx-headers: $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers
KERNEL_85XX := $(BUILD_POWERPC_LINUX_85XX)/kernel-85xx
KERNEL_85XX_HEADERS := $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers
KERNEL_DIR := $(ONL)/packages/base/any/kernels/legacy/linux-3.9.6
$(BUILD_POWERPC_LINUX_85XX)/kernel-85xx: $(KERNEL_DIR)/arch/powerpc/configs/85xx/onl_mpc85xx_defconfig
mkdir -p $(BUILD_POWERPC_LINUX_85XX)/linux-build-85xx
$(MAKE) -C $(KERNEL_DIR) 85xx/onl_mpc85xx_defconfig ARCH=powerpc O=$(BUILD_POWERPC_LINUX_85XX)/linux-build-85xx
PATH=$$PATH:$(SWITCHLIGHT)/tools $(MAKE) -C $(KERNEL_DIR) uImage ARCH=powerpc O=$(BUILD_POWERPC_LINUX_85XX)/linux-build-85xx
powerpc-linux-gnu-strip -o $(BUILD_POWERPC_LINUX_85XX)/kernel-85xx $(BUILD_POWERPC_LINUX_85XX)/linux-build-85xx/vmlinux
cp $(BUILD_POWERPC_LINUX_85XX)/linux-build-85xx/vmlinux.bin.gz $(BUILD_POWERPC_LINUX_85XX)/kernel-85xx.bin.gz
$(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers/.done: $(KERNEL_DIR)/arch/powerpc/configs/85xx/onl_mpc85xx_defconfig
mkdir -p $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers
cp -a $(KERNEL_DIR)/include $(KERNEL_DIR)/arch/powerpc/include $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers
$(MAKE) -C $(KERNEL_DIR) ARCH=powerpc O=$(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers 85xx/onl_mpc85xx_defconfig
$(MAKE) -C $(KERNEL_DIR) ARCH=powerpc O=$(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers headers_install modules_prepare arch/powerpc/lib/crtsavres.o
cp -R $(KERNEL_DIR)/scripts $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers
cp -R $(KERNEL_DIR)/Makefile $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers
cp -R $(KERNEL_DIR)/arch/powerpc/Makefile $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers/arch/powerpc
touch $@
$(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers: $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-headers/.done
# These are the dtb files built for this kernel configuration:
DTS_LIST := powerpc-quanta-lb9-r0 powerpc-quanta-lb9a-r0 powerpc-quanta-ly2-r0 powerpc-as4600-54t powerpc-as5610-52x powerpc-dni-7448-r0 powerpc-dell-s4810-on-p2020-r0
DTB_LIST := $(foreach dts,$(DTS_LIST),$(BUILD_POWERPC_LINUX_85XX)/linux-85xx-dtbs/$(dts).dtb)
$(BUILD_POWERPC_LINUX_85XX)/linux-85xx-dtbs/%.dtb: $(KERNEL_DIR)/arch/powerpc/boot/dts/%.dts kernel-85xx | $(shell mkdir -p $(BUILD_POWERPC_LINUX_85XX)/linux-85xx-dtbs)
linux-build-85xx/scripts/dtc/dtc -I dts -O dtb -o $@ $<
dtbs: $(DTB_LIST)
.PHONY: deb
deb:
$(MAKE) -C deb