Merge pull request #61 from jnealtowns/master

ARM Architecture Support
This commit is contained in:
Jeffrey Townsend
2016-04-04 15:39:56 -07:00
173 changed files with 890786 additions and 65 deletions

View File

@@ -36,6 +36,18 @@ onl-ppc ppc: packages_base_all
$(MAKE) -C builds/powerpc/swi
$(MAKE) -C builds/powerpc/installer/legacy
onl-arm arm: packages_base_all
@which arm-linux-gnueabi-gcc || (echo -n " \n * This container does not support building for the ARM architecture. Please use the Jessie onlbuilder8:1.2 container or later." && echo -n && exit 1)
$(MAKE) -C packages/base/armel/kernels
$(MAKE) -C packages/base/armel/initrds
$(MAKE) -C packages/base/armel/onlp
$(MAKE) -C packages/base/armel/onlp-snmpd
$(MAKE) -C packages/base/armel/faultd
$(MAKE) -C packages/base/armel/fit
$(MAKE) -C builds/armel/rootfs
$(MAKE) -C builds/armel/swi
packages_base_all:
$(MAKE) -C packages/base/all
@@ -65,4 +77,3 @@ docker-debug: docker_check
versions:
$(ONL)/tools/make-versions.py --import-file=$(ONL)/tools/onlvi --class-name=OnlVersionImplementation --output-dir $(ONL)/make --force

View File

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

View File

@@ -0,0 +1 @@
- u-boot-tools

1
builds/armel/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/builds/any/rootfs/APKG.yml ARCH=armel

2
builds/armel/rootfs/builds/.gitignore vendored Normal file
View File

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

View File

@@ -0,0 +1,14 @@
include $(ONL)/make/config.armel.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 armel --csv )
RFS_CONFIG := $(ONL)/builds/any/rootfs/$(ONL_DEBIAN_SUITE)/standard/standard.yml
RFS_DIR := rootfs-armel.d
RFS_CPIO := rootfs-armel.cpio.gz
RFS_SQUASH := rootfs-armel.sqsh
include $(ONL)/make/rfs.mk

View File

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

1
builds/armel/swi/PKG.yml Normal file
View File

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

1
builds/armel/swi/builds/.gitignore vendored Normal file
View File

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

View File

@@ -0,0 +1,3 @@
ROOTFS_PACKAGE := onl-rootfs
include $(ONL)/make/config.armel.mk
include $(ONL)/make/swi.mk

View File

@@ -0,0 +1,16 @@
FROM opennetworklinux/builder8:1.1
MAINTAINER Jeffrey Townsend <jeffrey.townsend@bigswitch.com>
RUN dpkg --add-architecture armel
RUN apt-get update && apt-get install -y \
crossbuild-essential-armel \
gcc-arm-linux-gnueabi
RUN xapt -a armel libedit-dev ncurses-dev libsensors4-dev libwrap0-dev libssl-dev libsnmp-dev
#
# Docker shell and other container tools.
#
COPY docker_shell /bin/docker_shell
COPY container-id /bin/container-id

View File

@@ -0,0 +1,19 @@
VERSION=1.2
USER=opennetworklinux
REPO=builder8
TOOLS=../../../tools/docker_shell ../../../tools/container-id
build: check_version
cp $(TOOLS) .
docker build -t $(USER)/$(REPO):$(VERSION) .
rm -rf $(notdir $(TOOLS))
#
# Todo: Query remote repository to see if the request version already exists to avoid accidental overwrites
# when a new image is built but the VERSION variable is not updated.
#
check_version:
push:
docker push $(USER)/$(REPO):$(VERSION)

9
make/config.armel.mk Normal file
View File

@@ -0,0 +1,9 @@
############################################################
#
# Open Network Linux
#
############################################################
include $(ONL)/make/config.mk
export TOOLCHAIN := arm-linux-gnueabi
export ARCH := armel
export UARCH := ARMEL

View File

@@ -144,9 +144,13 @@ build: setup
+$(K_MAKE) $(K_BUILD_TARGET)
ifdef K_COPY_SRC
ifdef K_COPY_DST
ifdef K_COPY_GZIP
gzip -c $(K_SOURCE_DIR)/$(K_COPY_SRC) > $(K_TARGET_DIR)/$(K_COPY_DST)
else
cp $(K_SOURCE_DIR)/$(K_COPY_SRC) $(K_TARGET_DIR)/$(K_COPY_DST)
endif
endif
endif
MODSYNCLIST := .config Module.symvers Makefile include scripts arch/x86/include arch/x86/Makefile arch/powerpc/include arch/powerpc/Makefile arch/powerpc/lib

View File

@@ -14,7 +14,7 @@ include $(ONL)/make/config.mk
# directory tree.
#
ifndef ARCHES
ARCHES := amd64 powerpc all
ARCHES := amd64 powerpc armel all
endif
pkgall:

View File

@@ -41,20 +41,25 @@ else
rm -f /tmp/rootfs
uarch=`uname -m`
ARCH_LIST=
case $uarch in
ppc)
ARCH_LIST="ppc powerpc"
;;
x86_64)
ARCH_LIST="x86_64 amd64"
;;
armv7l)
ARCH_LIST="armel"
;;
*)
;;
esac
if [ "$uarch" == "ppc" ]; then
# Try both rootfs-ppc and rootfs-powerpc
for arch in ppc powerpc; do
unzip -pq "${swipath}" "rootfs-$arch.sqsh" >/tmp/rootfs
[ ! -s /tmp/rootfs ] || break
done
elif [ "$uarch" == "x86_64" ]; then
# Try both rootfs-amd64 and rootfs-x86_64
for arch in x86_64 amd64; do
unzip -pq "${swipath}" "rootfs-$arch.sqsh" >/tmp/rootfs
[ ! -s /tmp/rootfs ] || break
done
fi
for arch in $ARCH_LIST; do
unzip -pq "${swipath}" "rootfs-$arch.sqsh" >/tmp/rootfs
[ ! -s /tmp/rootfs ] || break
done
if [ ! -s /tmp/rootfs ]; then
echo "${swipath} does not contain a rootfs image for the current architecture ($uarch). Booting cannot continue."

View File

@@ -5,6 +5,7 @@
#
############################################################
import os
import sys
import fnmatch
from onl.upgrade import ubase
@@ -147,7 +148,7 @@ if __name__ == '__main__':
elif arch == 'x86_64':
klass = Loader_Upgrade_x86_64
else:
raise Exception("The current architecture (%s) is not supported for upgrade." % arch)
klass().main()
sys.stderr.write("Loader Upgrade: The current architecture (%s) is not supported for upgrade.\n" % arch)
if klass:
klass().main()

View File

@@ -31,7 +31,9 @@ def baseconfig():
HOST_TYPES = [ 'powerpc-linux-gnu',
'i486-linux-gnu',
'i386-linux-gnu',
'x86_64-linux-gnu' ]
'x86_64-linux-gnu',
'arm-linux-gnueabi',
]
for ht in HOST_TYPES:
if os.path.exists('/lib/%s' % ht):
@@ -68,6 +70,3 @@ def baseconfig():
msg("Setting up base platform configuration for %s: done\n" %
platform.platform())

View File

@@ -1,3 +1,4 @@
.setup.done
buildroot-powerpc
buildroot-x86_64
buildroot-arm

View File

@@ -16,7 +16,7 @@ include $(ONL)/make/config.mk
#
# We build for these architectures
#
ARCHS := powerpc x86_64
ARCHS := powerpc x86_64 arm
BUILDROOT_ARCHDIRS := $(foreach a,$(ARCHS),buildroot-$(a))
BUILDROOT_SOURCE := buildroot-mirror

File diff suppressed because it is too large Load Diff

View File

@@ -551,7 +551,7 @@ CONFIG_FEATURE_DMESG_PRETTY=y
# CONFIG_FEATURE_GPT_LABEL is not set
# CONFIG_FEATURE_FDISK_ADVANCED is not set
# CONFIG_FINDFS is not set
# CONFIG_FLOCK is not set
CONFIG_FLOCK=y
CONFIG_FREERAMDISK=y
# CONFIG_FSCK_MINIX is not set
# CONFIG_MKFS_EXT2 is not set

View File

@@ -0,0 +1,2 @@
linux-3.2.71*
kernel-3.2*

View File

@@ -0,0 +1,41 @@
############################################################
# <bsn.cl fy=2015 v=onl>
#
# Copyright 2015 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>
############################################################
THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(ONL)/make/config.mk
ifndef K_TARGET_DIR
K_TARGET_DIR := $(THIS_DIR)
endif
include ../../kconfig.mk
K_CONFIG := arm-iproc-all.config
K_BUILD_TARGET := Image
K_COPY_SRC := arch/arm/boot/Image
K_COPY_GZIP := 1
ifndef K_COPY_DST
K_COPY_DST := kernel-3.2-deb7-arm-iproc-all.bin.gz
endif
export ARCH=arm
DTS_LIST := accton_as4610_54
include $(ONL)/make/kbuild.mk

View File

@@ -0,0 +1,27 @@
############################################################
# <bsn.cl fy=2015 v=onl>
#
# Copyright 2015 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>
############################################################
THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
K_MAJOR_VERSION := 3
K_PATCH_LEVEL := 2
K_SUB_LEVEL := 71
K_SUFFIX :=
K_PATCH_DIR := $(THIS_DIR)/patches

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
#!/bin/bash
set -e
rm "${1}/drivers/staging/ft1000/ft1000-pcmcia/ft1000.img"
rm "${1}/drivers/staging/ft1000/ft1000-usb/ft3000.img"

View File

@@ -0,0 +1,2 @@
prepare.sh
kernel-3.2.71.patch

View File

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

1
packages/base/armel/faultd/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@

View File

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

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/faultd/APKG.yml ARCH=armel TOOLCHAIN=arm-linux-gnueabi

View File

@@ -0,0 +1,2 @@
faultd.mk
faultd-module.mk

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/faultd/builds/Makefile

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,23 @@
prerequisites:
packages:
- onl-buildroot-initrd:powerpc
common:
arch: powerpc
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
files:
builds/onl-buildroot-fit.itb : $$PKG_INSTALL/
changelog: Change changes changes.,

View File

@@ -0,0 +1,4 @@
kernel-*
*.itb
*.its
loader-initrd-powerpc

View File

@@ -0,0 +1,9 @@
.PHONY: onl-buildroot-fit.itb onl-buildroot-fit.its
onl-buildroot-fit.itb:
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:armel,onl-buildroot-initrd-armel.cpio.gz --arch armel --add-platform all --itb $@
onl-buildroot-fit.its:
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:armel,onl-buildroot-initrd-armel.cpio.gz --arch armel --add-platform all --its $@
its: onl-buildroot-fit.its

View File

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

View File

@@ -0,0 +1,23 @@
prerequisites:
packages:
- onl-loader-initrd:powerpc
common:
arch: powerpc
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
files:
builds/onl-loader-fit.itb : $$PKG_INSTALL/
changelog: Change changes changes.,

View File

@@ -0,0 +1,4 @@
kernel-*
*.itb
*.its
loader-initrd-powerpc

View File

@@ -0,0 +1,9 @@
.PHONY: onl-loader-fit.itb onl-loader-fit.its
onl-loader-fit.itb:
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:armel,onl-loader-initrd-armel.cpio.gz --arch armel --add-platform initrd --itb $@
onl-loader-fit.its:
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:armel,onl-loader-initrd-armel.cpio.gz --arch armel --add-platform initrd --its $@
its: onl-loader-fit.its

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=armel

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.armel.mk
export BUILDROOT_ARCH := arm
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/packages/base/any/initrds/loader/APKG.yml ARCH=armel

View File

@@ -0,0 +1,3 @@
loader-rootfs
buildroot-makedevs
manifest.json

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/initrds/loader/builds/Makefile

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,18 @@
common:
arch: armel
version: 1.0.0
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
packages:
- name: onl-kernel-3.2-deb7-arm-iproc-all
version: 1.0.0
summary: Open Network Linux Kernel 3.2-deb7 for ARM Integrated Processor Platforms.
files:
builds/kernel-3.2-deb7-arm-iproc-all.bin.gz : $$PKG_INSTALL/
builds/linux-3.2.71-mbuild : $$PKG_INSTALL/mbuilds
builds/linux-3.2.71-dtbs : $$PKG_INSTALL/dtbs
changelog: Change changes changes.,

View File

@@ -0,0 +1,2 @@
linux-3.2.71*
kernel-3.2-*

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.71-1+deb7/configs/arm-iproc-all K_TARGET_DIR=$(THIS_DIR) $(ONL_MAKE_PARALLEL)
clean:
rm -rf linux-3.2.71-1*

View File

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

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/onlp-snmpd/APKG.yml ARCH=armel TOOLCHAIN=arm-linux-gnueabi

View File

@@ -0,0 +1 @@
onlp-snmpd.mk

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/onlp-snmpd/builds/Makefile

View File

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

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/onlp/APKG.yml ARCH=armel TOOLCHAIN=arm-linux-gnueabi

View File

@@ -0,0 +1 @@
libonlp-module.mk

View File

@@ -0,0 +1,3 @@
DIRECTORIES := onlp-platform-defaults onlp-platform onlp onlpd
include $(ONL)/make/subdirs.mk

View File

@@ -0,0 +1 @@
libonlp-platform-defaults-module.mk

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/onlp/builds/onlp-platform-defaults/Makefile

View File

@@ -0,0 +1 @@
libonlp-platform-module.mk

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/onlp/builds/onlp-platform/Makefile

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/onlp/builds/onlp/Makefile

View File

@@ -0,0 +1 @@
onlpd-module.mk

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/onlp/builds/onlpd/Makefile

View File

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

View File

@@ -0,0 +1 @@
!include $ONL/packages/base/any/oom-shim/APKG.yml ARCH=armel TOOLCHAIN=arm-linux-gnueabi

View File

@@ -0,0 +1,2 @@
include $(ONL)/make/config.armel.mk
include $(ONL)/packages/base/any/oom-shim/builds/Makefile

View File

@@ -0,0 +1,10 @@
###############################################################################
#
# Inclusive Makefile for the oom_shim module.
#
# Autogenerated 2016-02-16 14:17:39.946619
#
###############################################################################
oom_shim_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

View File

@@ -1,12 +1,9 @@
.PHONY: onl-buildroot-fit.itb onl-buildroot-fit.its
onl-buildroot-fit.itb:
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:powerpc,onl-buildroot-initrd-powerpc.cpio.gz --add-platform all --itb $@
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:powerpc,onl-buildroot-initrd-powerpc.cpio.gz --arch powerpc --add-platform all --itb $@
onl-buildroot-fit.its:
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:powerpc,onl-buildroot-initrd-powerpc.cpio.gz --add-platform all --its $@
$(ONL)/tools/flat-image-tree.py --initrd onl-buildroot-initrd:powerpc,onl-buildroot-initrd-powerpc.cpio.gz --arch powerpc --add-platform all --its $@
its: onl-buildroot-fit.its

View File

@@ -3,13 +3,10 @@ include $(ONL)/make/config.powerpc.mk
.PHONY: onl-loader-fit.itb onl-loader-fit.its
onl-loader-fit.itb:
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:powerpc,onl-loader-initrd-powerpc.cpio.gz --add-platform initrd --itb $@
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:powerpc,onl-loader-initrd-powerpc.cpio.gz --arch powerpc --add-platform initrd --itb $@
$(ONLPM) --copy-file onl-loader-initrd:powerpc manifest.json .
onl-loader-fit.its:
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:powerpc,onl-loader-initrd-powerpc.cpio.gz --add-platform initrd --its $@
$(ONL)/tools/flat-image-tree.py --initrd onl-loader-initrd:powerpc,onl-loader-initrd-powerpc.cpio.gz --arch powerpc --add-platform initrd --its $@
its: onl-loader-fit.its

View File

@@ -0,0 +1,2 @@
*x86*64*cel*redstone*xp*.mk
onlpdump.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_TEMPLATES/onlp-platform-any.yml PLATFORM=arm-accton-as4610-54 ARCH=armel TOOLCHAIN=arm-linux-gnueabi

View File

@@ -0,0 +1,2 @@
FILTER=src
include $(ONL)/make/subdirs.mk

View File

@@ -0,0 +1,44 @@
############################################################
# <bsn.cl fy=2014 v=onl>
#
# Copyright 2014 BigSwitch 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.armel.mk
MODULE := libonlp-arm-accton-as4610-54
include $(BUILDER)/standardinit.mk
DEPENDMODULES := AIM IOF arm_accton_as4610_54 onlplib
DEPENDMODULE_HEADERS := sff
include $(BUILDER)/dependmodules.mk
SHAREDLIB := libonlp-arm-accton-as4610-54.so
$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
include $(BUILDER)/so.mk
.DEFAULT_GOAL := $(SHAREDLIB)
GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc
GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
GLOBAL_CFLAGS += -fPIC
GLOBAL_LINK_LIBS += -lpthread
include $(BUILDER)/targets.mk

View File

@@ -0,0 +1,10 @@
###############################################################################
#
# Inclusive Makefile for the arm_accton_as4610_54 module.
#
# Autogenerated 2016-04-03 19:55:05.384384
#
###############################################################################
arm_accton_as4610_54_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

View File

@@ -0,0 +1,10 @@
###############################################################################
#
# Inclusive Makefile for the libonlp-arm-accton-as4610-54 module.
#
# Autogenerated 2016-04-03 19:55:05.365431
#
###############################################################################
libonlp-arm-accton-as4610-54_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

View File

@@ -0,0 +1,45 @@
############################################################
# <bsn.cl fy=2014 v=onl>
#
# Copyright 2014 BigSwitch 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.armel.mk
.DEFAULT_GOAL := onlpdump
MODULE := onlpdump
include $(BUILDER)/standardinit.mk
DEPENDMODULES := AIM IOF onlp arm_accton_as4610_54 onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
include $(BUILDER)/dependmodules.mk
BINARY := onlpdump
$(BINARY)_LIBRARIES := $(LIBRARY_TARGETS)
include $(BUILDER)/bin.mk
GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=onlpdump_main
GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1
GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MAIN=1
GLOBAL_LINK_LIBS += -lpthread -lm
include $(BUILDER)/targets.mk

View File

@@ -0,0 +1,2 @@
/arm_accton_as4610_54.mk
/doc

View File

@@ -0,0 +1,28 @@
############################################################
# <bsn.cl fy=2014 v=onl>
#
# Copyright 2014, 2015 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.mk
MODULE := arm_accton_as4610_54
AUTOMODULE := arm_accton_as4610_54
include $(BUILDER)/definemodule.mk

View File

@@ -0,0 +1,68 @@
############################################################
# <bsn.cl fy=2014 v=onl>
#
# Copyright 2014, 2015 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>
############################################################
#
# arm_accton_as4610_54 Autogeneration Definitions.
#
############################################################
cdefs: &cdefs
- ONLPSIM_CONFIG_INCLUDE_LOGGING:
doc: "Include or exclude logging."
default: 1
- ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT:
doc: "Default enabled log options."
default: AIM_LOG_OPTIONS_DEFAULT
- ONLPSIM_CONFIG_LOG_BITS_DEFAULT:
doc: "Default enabled log bits."
default: AIM_LOG_BITS_DEFAULT
- ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT:
doc: "Default enabled custom log bits."
default: 0
- ONLPSIM_CONFIG_PORTING_STDLIB:
doc: "Default all porting macros to use the C standard libraries."
default: 1
- ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS:
doc: "Include standard library headers for stdlib porting macros."
default: ONLPSIM_CONFIG_PORTING_STDLIB
- ONLPSIM_CONFIG_INCLUDE_UCLI:
doc: "Include generic uCli support."
default: 0
- ONLPSIM_CONFIG_SFP_COUNT:
doc: "SFP Count."
default: 0
definitions:
cdefs:
ONLPSIM_CONFIG_HEADER:
defs: *cdefs
basename: arm_accton_as4610_54_config
portingmacro:
ONLPSIM:
macros:
- malloc
- free
- memset
- memcpy
- strncpy
- vsnprintf
- snprintf
- strlen

View File

@@ -0,0 +1,29 @@
############################################################
# <bsn.cl fy=2014 v=onl>
#
# Copyright 2014, 2015 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>
############################################################
#
# arm_accton_as4610_54 Autogeneration
#
############################################################
arm_accton_as4610_54_AUTO_DEFS := module/auto/arm_accton_as4610_54.yml
arm_accton_as4610_54_AUTO_DIRS := module/inc/arm_accton_as4610_54 module/src
include $(BUILDER)/auto.mk

View File

@@ -0,0 +1,34 @@
/************************************************************
* <bsn.cl fy=2014 v=onl>
*
* Copyright 2014, 2015 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 <arm_accton_as4610_54/arm_accton_as4610_54_config.h>
/* <--auto.start.xmacro(ALL).define> */
/* <auto.end.xmacro(ALL).define> */
/* <--auto.start.xenum(ALL).define> */
/* <auto.end.xenum(ALL).define> */

View File

@@ -0,0 +1,162 @@
/************************************************************
* <bsn.cl fy=2014 v=onl>
*
* Copyright 2014, 2015 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>
************************************************************
*
*
*
***********************************************************/
/**************************************************************************//**
*
* @file
* @brief arm_accton_as4610_54 Configuration Header
*
* @addtogroup arm_accton_as4610_54-config
* @{
*
*****************************************************************************/
#ifndef __ONLPSIM_CONFIG_H__
#define __ONLPSIM_CONFIG_H__
#ifdef GLOBAL_INCLUDE_CUSTOM_CONFIG
#include <global_custom_config.h>
#endif
#ifdef ONLPSIM_INCLUDE_CUSTOM_CONFIG
#include <arm_accton_as4610_54_custom_config.h>
#endif
/* <auto.start.cdefs(ONLPSIM_CONFIG_HEADER).header> */
#include <AIM/aim.h>
/**
* ONLPSIM_CONFIG_INCLUDE_LOGGING
*
* Include or exclude logging. */
#ifndef ONLPSIM_CONFIG_INCLUDE_LOGGING
#define ONLPSIM_CONFIG_INCLUDE_LOGGING 1
#endif
/**
* ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT
*
* Default enabled log options. */
#ifndef ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT
#define ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT AIM_LOG_OPTIONS_DEFAULT
#endif
/**
* ONLPSIM_CONFIG_LOG_BITS_DEFAULT
*
* Default enabled log bits. */
#ifndef ONLPSIM_CONFIG_LOG_BITS_DEFAULT
#define ONLPSIM_CONFIG_LOG_BITS_DEFAULT AIM_LOG_BITS_DEFAULT
#endif
/**
* ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT
*
* Default enabled custom log bits. */
#ifndef ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT
#define ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT 0
#endif
/**
* ONLPSIM_CONFIG_PORTING_STDLIB
*
* Default all porting macros to use the C standard libraries. */
#ifndef ONLPSIM_CONFIG_PORTING_STDLIB
#define ONLPSIM_CONFIG_PORTING_STDLIB 1
#endif
/**
* ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
*
* Include standard library headers for stdlib porting macros. */
#ifndef ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
#define ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS ONLPSIM_CONFIG_PORTING_STDLIB
#endif
/**
* ONLPSIM_CONFIG_INCLUDE_UCLI
*
* Include generic uCli support. */
#ifndef ONLPSIM_CONFIG_INCLUDE_UCLI
#define ONLPSIM_CONFIG_INCLUDE_UCLI 0
#endif
/**
* ONLPSIM_CONFIG_SFP_COUNT
*
* SFP Count. */
#ifndef ONLPSIM_CONFIG_SFP_COUNT
#define ONLPSIM_CONFIG_SFP_COUNT 0
#endif
/**
* All compile time options can be queried or displayed
*/
/** Configuration settings structure. */
typedef struct arm_accton_as4610_54_config_settings_s {
/** name */
const char* name;
/** value */
const char* value;
} arm_accton_as4610_54_config_settings_t;
/** Configuration settings table. */
/** arm_accton_as4610_54_config_settings table. */
extern arm_accton_as4610_54_config_settings_t arm_accton_as4610_54_config_settings[];
/**
* @brief Lookup a configuration setting.
* @param setting The name of the configuration option to lookup.
*/
const char* arm_accton_as4610_54_config_lookup(const char* setting);
/**
* @brief Show the compile-time configuration.
* @param pvs The output stream.
*/
int arm_accton_as4610_54_config_show(struct aim_pvs_s* pvs);
/* <auto.end.cdefs(ONLPSIM_CONFIG_HEADER).header> */
#include "arm_accton_as4610_54_porting.h"
#endif /* __ONLPSIM_CONFIG_H__ */
/* @} */

View File

@@ -0,0 +1,51 @@
/************************************************************
* <bsn.cl fy=2014 v=onl>
*
* Copyright 2014, 2015 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>
************************************************************
*
*
*
***********************************************************/
/********************************************************//**
*
* arm_accton_as4610_54 Doxygen Header
*
***********************************************************/
#ifndef __ONLPSIM_DOX_H__
#define __ONLPSIM_DOX_H__
/**
* @defgroup arm_accton_as4610_54 arm_accton_as4610_54 - onlpsim Description
*
The documentation overview for this module should go here.
*
* @{
*
* @defgroup arm_accton_as4610_54-arm_accton_as4610_54 Public Interface
* @defgroup arm_accton_as4610_54-config Compile Time Configuration
* @defgroup arm_accton_as4610_54-porting Porting Macros
*
* @}
*
*/
#endif /* __ONLPSIM_DOX_H__ */

View File

@@ -0,0 +1,132 @@
/************************************************************
* <bsn.cl fy=2014 v=onl>
*
* Copyright 2014, 2015 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>
************************************************************
*
*
*
***********************************************************/
/********************************************************//**
*
* @file
* @brief arm_accton_as4610_54 Porting Macros.
*
* @addtogroup arm_accton_as4610_54-porting
* @{
*
***********************************************************/
#ifndef __ONLPSIM_PORTING_H__
#define __ONLPSIM_PORTING_H__
/* <auto.start.portingmacro(ALL).define> */
#if ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS == 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <memory.h>
#endif
#ifndef ONLPSIM_MALLOC
#if defined(GLOBAL_MALLOC)
#define ONLPSIM_MALLOC GLOBAL_MALLOC
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_MALLOC malloc
#else
#error The macro ONLPSIM_MALLOC is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_FREE
#if defined(GLOBAL_FREE)
#define ONLPSIM_FREE GLOBAL_FREE
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_FREE free
#else
#error The macro ONLPSIM_FREE is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_MEMSET
#if defined(GLOBAL_MEMSET)
#define ONLPSIM_MEMSET GLOBAL_MEMSET
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_MEMSET memset
#else
#error The macro ONLPSIM_MEMSET is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_MEMCPY
#if defined(GLOBAL_MEMCPY)
#define ONLPSIM_MEMCPY GLOBAL_MEMCPY
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_MEMCPY memcpy
#else
#error The macro ONLPSIM_MEMCPY is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_STRNCPY
#if defined(GLOBAL_STRNCPY)
#define ONLPSIM_STRNCPY GLOBAL_STRNCPY
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_STRNCPY strncpy
#else
#error The macro ONLPSIM_STRNCPY is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_VSNPRINTF
#if defined(GLOBAL_VSNPRINTF)
#define ONLPSIM_VSNPRINTF GLOBAL_VSNPRINTF
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_VSNPRINTF vsnprintf
#else
#error The macro ONLPSIM_VSNPRINTF is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_SNPRINTF
#if defined(GLOBAL_SNPRINTF)
#define ONLPSIM_SNPRINTF GLOBAL_SNPRINTF
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_SNPRINTF snprintf
#else
#error The macro ONLPSIM_SNPRINTF is required but cannot be defined.
#endif
#endif
#ifndef ONLPSIM_STRLEN
#if defined(GLOBAL_STRLEN)
#define ONLPSIM_STRLEN GLOBAL_STRLEN
#elif ONLPSIM_CONFIG_PORTING_STDLIB == 1
#define ONLPSIM_STRLEN strlen
#else
#error The macro ONLPSIM_STRLEN is required but cannot be defined.
#endif
#endif
/* <auto.end.portingmacro(ALL).define> */
#endif /* __ONLPSIM_PORTING_H__ */
/* @} */

View File

@@ -0,0 +1,29 @@
############################################################
# <bsn.cl fy=2014 v=onl>
#
# Copyright 2014, 2015 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>
############################################################
#
#
#
############################################################
THIS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
arm_accton_as4610_54_INCLUDES := -I $(THIS_DIR)inc
arm_accton_as4610_54_INTERNAL_INCLUDES := -I $(THIS_DIR)src
arm_accton_as4610_54_DEPENDMODULE_ENTRIES := init:arm_accton_as4610_54 ucli:arm_accton_as4610_54

Some files were not shown because too many files have changed in this diff Show More