Add NXP arm64 LS1043ARDB, LS1046ARDB, LS1088ARDB platforms

Support NXP ARM64 LS1043ARDB, LS1046ARDB, LS1088ARDB, LS2088ARDB platforms

Signed-off-by: Guo Hanyue <guo.hanyue@nxp.com>
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
This commit is contained in:
Shengzhou Liu
2018-02-13 16:28:34 +08:00
parent 1297ea341e
commit 670b82d75c
67 changed files with 521 additions and 362 deletions

View File

@@ -0,0 +1,33 @@
prerequisites:
packages:
- "onl-vendor-nxp-modules:arm64"
common:
version: 1.0.0
arch: arm64
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
support: opennetworklinux@googlegroups.com
packages:
- name: onl-platform-modules-arm64-nxp-ls2088ardb
summary: ONL Platform Modules Package for the arm64-nxp-ls2088ardb
depends: onl-vendor-nxp-modules
changelog: Changes
- name: onl-platform-modules-arm64-nxp-ls1043ardb
summary: ONL Platform Modules Package for the arm64-nxp-ls1043ardb
depends: onl-vendor-nxp-modules
changelog: Changes
- name: onl-platform-modules-arm64-nxp-ls1046ardb
summary: ONL Platform Modules Package for the arm64-nxp-ls1046ardb
depends: onl-vendor-nxp-modules
changelog: Changes
- name: onl-platform-modules-arm64-nxp-ls1088ardb
summary: ONL Platform Modules Package for the arm64-nxp-ls1088ardb
depends: onl-vendor-nxp-modules
changelog: Changes

View File

@@ -0,0 +1,52 @@
variables:
platformbase: arm64-nxp-layerscape
ls2088_platform: arm64-nxp-ls2088ardb
ls1043_platform: arm64-nxp-ls1043ardb
ls1046_platform: arm64-nxp-ls1046ardb
ls1088_platform: arm64-nxp-ls1088ardb
ls2088_install: /lib/platform-config/arm64-nxp-ls2088ardb-r0/onl
ls1043_install: /lib/platform-config/arm64-nxp-ls1043ardb-r0/onl
ls1046_install: /lib/platform-config/arm64-nxp-ls1046ardb-r0/onl
ls1088_install: /lib/platform-config/arm64-nxp-ls1088ardb-r0/onl
common:
version: 1.0.0
arch: arm64
copyright: Copyright 2016 NXP Semiconductor, Inc.
maintainer: support@bigswitch.com
changelog: Change changes changes.,
packages:
- name: onlp-arm64-nxp-ls2088ardb-r0
summary: ONLP Package for the arm64-nxp-ls2088ardb-r0 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${ls2088_install}/lib/libonlp-${ls2088_platform}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${ls2088_install}/bin/
- name: onlp-arm64-nxp-ls1043ardb-r0
summary: ONLP Package for the arm64-nxp-ls1043ardb-r0 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${ls1043_install}/lib/libonlp-${ls1043_platform}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${ls1043_install}/bin/
- name: onlp-arm64-nxp-ls1046ardb-r0
summary: ONLP Package for the arm64-nxp-ls1046ardb-r0 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${ls1046_install}/lib/libonlp-${ls1046_platform}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${ls1046_install}/bin/
- name: onlp-arm64-nxp-ls1088ardb-r0
summary: ONLP Package for the arm64-nxp-ls1088ardb-r0 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${ls1088_install}/lib/libonlp-${ls1088_platform}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${ls1088_install}/bin/

View File

@@ -23,15 +23,15 @@
############################################################
include $(ONL)/make/config.arm64.mk
MODULE := libonlp-arm64-nxp-ls2080ardb
MODULE := libonlp-arm64-nxp-layerscape
include $(BUILDER)/standardinit.mk
DEPENDMODULES := AIM IOF arm64_nxp_ls2080ardb onlplib
DEPENDMODULES := AIM IOF arm64_nxp_layerscape onlplib
DEPENDMODULE_HEADERS := sff
include $(BUILDER)/dependmodules.mk
SHAREDLIB := libonlp-arm64-nxp-ls2080ardb.so
SHAREDLIB := libonlp-arm64-nxp-layerscape.so
$(SHAREDLIB)_TARGETS := $(ALL_TARGETS)
include $(BUILDER)/so.mk
.DEFAULT_GOAL := $(SHAREDLIB)

View File

@@ -29,7 +29,7 @@ include $(ONL)/make/config.arm64.mk
MODULE := onlpdump
include $(BUILDER)/standardinit.mk
DEPENDMODULES := AIM IOF onlp arm64_nxp_ls2080ardb onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
DEPENDMODULES := AIM IOF onlp arm64_nxp_layerscape onlplib onlp_platform_defaults sff cjson cjson_util timer_wheel OS
include $(BUILDER)/dependmodules.mk

View File

@@ -0,0 +1 @@
name: arm64_nxp_layerscape

View File

@@ -23,6 +23,6 @@
#
############################################################
include $(ONL)/make/config.mk
MODULE := arm64_nxp_ls2080ardb
AUTOMODULE := arm64_nxp_ls2080ardb
MODULE := arm64_nxp_layerscape
AUTOMODULE := arm64_nxp_layerscape
include $(BUILDER)/definemodule.mk

View File

@@ -26,7 +26,7 @@ DOXYFILE_ENCODING = UTF-8
# identify the project. Note that if you do not use Doxywizard you need
# to put quotes around the project name if it contains spaces.
PROJECT_NAME = "arm64_nxp_ls2080ardb"
PROJECT_NAME = "arm64_nxp_layerscape"
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
# This could be handy for archiving the generated documentation or

View File

@@ -0,0 +1,13 @@
###############################################################################
#
# Inclusive Makefile for the arm64_nxp_layerscape module.
#
# Autogenerated 2017-12-18 11:06:48.148999
#
###############################################################################
arm64_nxp_layerscape_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(arm64_nxp_layerscape_BASEDIR)module/make.mk
include $(arm64_nxp_layerscape_BASEDIR)module/src/make.mk
include $(arm64_nxp_layerscape_BASEDIR)module/auto/make.mk

View File

@@ -19,7 +19,7 @@
# </bsn.cl>
############################################################
#
# arm64_nxp_ls2080ardb Autogeneration Definitions.
# arm64_nxp_layerscape Autogeneration Definitions.
#
############################################################
@@ -53,7 +53,7 @@ definitions:
cdefs:
ONLPSIM_CONFIG_HEADER:
defs: *cdefs
basename: arm64_nxp_ls2080ardb_config
basename: arm64_nxp_layerscape_config
portingmacro:
ONLPSIM:

View File

@@ -19,11 +19,11 @@
# </bsn.cl>
############################################################
#
# arm64_nxp_ls2080ardb Autogeneration
# arm64_nxp_layerscape Autogeneration
#
############################################################
arm64_nxp_ls2080ardb_AUTO_DEFS := module/auto/arm64_nxp_ls2080ardb.yml
arm64_nxp_ls2080ardb_AUTO_DIRS := module/inc/arm64_nxp_ls2080ardb module/src
arm64_nxp_layerscape_AUTO_DEFS := module/auto/arm64_nxp_layerscape.yml
arm64_nxp_layerscape_AUTO_DIRS := module/inc/arm64_nxp_layerscape module/src
include $(BUILDER)/auto.mk

View File

@@ -23,7 +23,7 @@
*
***********************************************************/
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
/* <--auto.start.xmacro(ALL).define> */
/* <auto.end.xmacro(ALL).define> */

View File

@@ -26,9 +26,9 @@
/**************************************************************************//**
*
* @file
* @brief arm64_nxp_ls2080ardb Configuration Header
* @brief arm64_nxp_layerscape Configuration Header
*
* @addtogroup arm64_nxp_ls2080ardb-config
* @addtogroup arm64_nxp_layerscape-config
* @{
*
*****************************************************************************/
@@ -39,7 +39,7 @@
#include <global_custom_config.h>
#endif
#ifdef ONLPSIM_INCLUDE_CUSTOM_CONFIG
#include <arm64_nxp_ls2080ardb_custom_config.h>
#include <arm64_nxp_layerscape_custom_config.h>
#endif
/* <auto.start.cdefs(ONLPSIM_CONFIG_HEADER).header> */
@@ -131,32 +131,32 @@
*/
/** Configuration settings structure. */
typedef struct arm64_nxp_ls2080ardb_config_settings_s {
typedef struct arm64_nxp_layerscape_config_settings_s {
/** name */
const char* name;
/** value */
const char* value;
} arm64_nxp_ls2080ardb_config_settings_t;
} arm64_nxp_layerscape_config_settings_t;
/** Configuration settings table. */
/** arm64_nxp_ls2080ardb_config_settings table. */
extern arm64_nxp_ls2080ardb_config_settings_t arm64_nxp_ls2080ardb_config_settings[];
/** arm64_nxp_layerscape_config_settings table. */
extern arm64_nxp_layerscape_config_settings_t arm64_nxp_layerscape_config_settings[];
/**
* @brief Lookup a configuration setting.
* @param setting The name of the configuration option to lookup.
*/
const char* arm64_nxp_ls2080ardb_config_lookup(const char* setting);
const char* arm64_nxp_layerscape_config_lookup(const char* setting);
/**
* @brief Show the compile-time configuration.
* @param pvs The output stream.
*/
int arm64_nxp_ls2080ardb_config_show(struct aim_pvs_s* pvs);
int arm64_nxp_layerscape_config_show(struct aim_pvs_s* pvs);
/* <auto.end.cdefs(ONLPSIM_CONFIG_HEADER).header> */
#include "arm64_nxp_ls2080ardb_porting.h"
#include "arm64_nxp_layerscape_porting.h"
#endif /* __ONLPSIM_CONFIG_H__ */
/* @} */

View File

@@ -25,14 +25,14 @@
/********************************************************//**
*
* arm64_nxp_ls2080ardb Doxygen Header
* arm64_nxp_layerscape Doxygen Header
*
***********************************************************/
#ifndef __ONLPSIM_DOX_H__
#define __ONLPSIM_DOX_H__
/**
* @defgroup arm64_nxp_ls2080ardb arm64_nxp_ls2080ardb - onlpsim Description
* @defgroup arm64_nxp_layerscape arm64_nxp_layerscape - onlpsim Description
*
The documentation overview for this module should go here.
@@ -40,9 +40,9 @@ The documentation overview for this module should go here.
*
* @{
*
* @defgroup arm64_nxp_ls2080ardb-arm64_nxp_ls2080ardb Public Interface
* @defgroup arm64_nxp_ls2080ardb-config Compile Time Configuration
* @defgroup arm64_nxp_ls2080ardb-porting Porting Macros
* @defgroup arm64_nxp_layerscape-arm64_nxp_layerscape Public Interface
* @defgroup arm64_nxp_layerscape-config Compile Time Configuration
* @defgroup arm64_nxp_layerscape-porting Porting Macros
*
* @}
*

View File

@@ -27,9 +27,9 @@
/********************************************************//**
*
* @file
* @brief arm64_nxp_ls2080ardb Porting Macros.
* @brief arm64_nxp_layerscape Porting Macros.
*
* @addtogroup arm64_nxp_ls2080ardb-porting
* @addtogroup arm64_nxp_layerscape-porting
* @{
*
***********************************************************/

View File

@@ -23,7 +23,7 @@
#
############################################################
THIS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
arm64_nxp_ls2080ardb_INCLUDES := -I $(THIS_DIR)inc
arm64_nxp_ls2080ardb_INTERNAL_INCLUDES := -I $(THIS_DIR)src
arm64_nxp_ls2080ardb_DEPENDMODULE_ENTRIES := init:arm64_nxp_ls2080ardb ucli:arm64_nxp_ls2080ardb
arm64_nxp_layerscape_INCLUDES := -I $(THIS_DIR)inc
arm64_nxp_layerscape_INTERNAL_INCLUDES := -I $(THIS_DIR)src
arm64_nxp_layerscape_DEPENDMODULE_ENTRIES := init:arm64_nxp_layerscape ucli:arm64_nxp_layerscape

View File

@@ -26,5 +26,5 @@
include ../../../../init.mk
ucli:
$(SUBMODULE_BIGCODE)/tools/uclihandlers.py arm64_nxp_ls2080ardb_ucli.c
$(SUBMODULE_BIGCODE)/tools/uclihandlers.py arm64_nxp_layerscape_ucli.c

View File

@@ -0,0 +1,101 @@
/************************************************************
* <bsn.cl fy=2014 v=onl>
*
* Copyright 2016 NXP Semiconductor, 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 <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
/* <auto.start.cdefs(ONLPSIM_CONFIG_HEADER).source> */
#define __arm64_nxp_layerscape_config_STRINGIFY_NAME(_x) #_x
#define __arm64_nxp_layerscape_config_STRINGIFY_VALUE(_x) __arm64_nxp_layerscape_config_STRINGIFY_NAME(_x)
arm64_nxp_layerscape_config_settings_t arm64_nxp_layerscape_config_settings[] =
{
#ifdef ONLPSIM_CONFIG_INCLUDE_LOGGING
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_INCLUDE_LOGGING), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_INCLUDE_LOGGING) },
#else
{ ONLPSIM_CONFIG_INCLUDE_LOGGING(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT) },
#else
{ ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_LOG_BITS_DEFAULT
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_LOG_BITS_DEFAULT), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_LOG_BITS_DEFAULT) },
#else
{ ONLPSIM_CONFIG_LOG_BITS_DEFAULT(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT) },
#else
{ ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_PORTING_STDLIB
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_PORTING_STDLIB), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_PORTING_STDLIB) },
#else
{ ONLPSIM_CONFIG_PORTING_STDLIB(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) },
#else
{ ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_INCLUDE_UCLI
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_INCLUDE_UCLI), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_INCLUDE_UCLI) },
#else
{ ONLPSIM_CONFIG_INCLUDE_UCLI(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_SFP_COUNT
{ __arm64_nxp_layerscape_config_STRINGIFY_NAME(ONLPSIM_CONFIG_SFP_COUNT), __arm64_nxp_layerscape_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_SFP_COUNT) },
#else
{ ONLPSIM_CONFIG_SFP_COUNT(__arm64_nxp_layerscape_config_STRINGIFY_NAME), "__undefined__" },
#endif
{ NULL, NULL }
};
#undef __arm64_nxp_layerscape_config_STRINGIFY_VALUE
#undef __arm64_nxp_layerscape_config_STRINGIFY_NAME
const char*
arm64_nxp_layerscape_config_lookup(const char* setting)
{
int i;
for(i = 0; arm64_nxp_layerscape_config_settings[i].name; i++) {
if(strcmp(arm64_nxp_layerscape_config_settings[i].name, setting)) {
return arm64_nxp_layerscape_config_settings[i].value;
}
}
return NULL;
}
int
arm64_nxp_layerscape_config_show(struct aim_pvs_s* pvs)
{
int i;
for(i = 0; arm64_nxp_layerscape_config_settings[i].name; i++) {
aim_printf(pvs, "%s = %s\n", arm64_nxp_layerscape_config_settings[i].name, arm64_nxp_layerscape_config_settings[i].value);
}
return i;
}
/* <auto.end.cdefs(ONLPSIM_CONFIG_HEADER).source> */

View File

@@ -23,8 +23,33 @@
*
***********************************************************/
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
#include "arm64_nxp_layerscape_int.h"
/* <--auto.start.enum(ALL).source> */
/* <auto.end.enum(ALL).source> */
aim_map_si_t platform_id_map[] =
{
{ "arm64-nxp-ls2088ardb-r0", PLATFORM_ID_ARM64_NXP_LS2088ARDB_R0 },
{ "arm64-nxp-ls1043ardb-r0", PLATFORM_ID_ARM64_NXP_LS1043ARDB_R0 },
{ "arm64-nxp-ls1046ardb-r0", PLATFORM_ID_ARM64_NXP_LS1046ARDB_R0 },
{ "arm64-nxp-ls1088ardb-r0", PLATFORM_ID_ARM64_NXP_LS1088ARDB_R0 },
{ NULL, 0 }
};
int
platform_id_value(const char* str, platform_id_t* e, int substr)
{
int i;
AIM_REFERENCE(substr);
if(aim_map_si_s(&i, str, platform_id_map, 0)) {
/* Enum Found */
*e = i;
return 0;
}
else{
return -1;
}
}

View File

@@ -26,7 +26,20 @@
#ifndef __ONLPSIM_INT_H__
#define __ONLPSIM_INT_H__
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
/* <auto.start.enum(ALL).header> */
/** platform_id */
typedef enum platform_id_e {
PLATFORM_ID_ARM64_NXP_LS2088ARDB_R0,
PLATFORM_ID_ARM64_NXP_LS1043ARDB_R0,
PLATFORM_ID_ARM64_NXP_LS1046ARDB_R0,
PLATFORM_ID_ARM64_NXP_LS1088ARDB_R0,
PLATFORM_ID_COUNT,
PLATFORM_ID_INVALID = -1,
} platform_id_t;
/** Enum values. */
int platform_id_value(const char* str, platform_id_t* e, int substr);
#endif /* __ONLPSIM_INT_H__ */

View File

@@ -23,11 +23,11 @@
*
***********************************************************/
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
#include "arm64_nxp_ls2080ardb_log.h"
#include "arm64_nxp_layerscape_log.h"
/*
* arm64_nxp_ls2080ardb log struct.
* arm64_nxp_layerscape log struct.
*/
AIM_LOG_STRUCT_DEFINE(
ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT,

View File

@@ -26,7 +26,7 @@
#ifndef __ONLPSIM_LOG_H__
#define __ONLPSIM_LOG_H__
#define AIM_LOG_MODULE_NAME arm64_nxp_ls2080ardb
#define AIM_LOG_MODULE_NAME arm64_nxp_layerscape
#include <AIM/aim_log.h>
#endif /* __ONLPSIM_LOG_H__ */

View File

@@ -23,19 +23,19 @@
*
***********************************************************/
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
#include "arm64_nxp_ls2080ardb_log.h"
#include "arm64_nxp_layerscape_log.h"
static int
datatypes_init__(void)
{
#define ONLPSIM_ENUMERATION_ENTRY(_enum_name, _desc) AIM_DATATYPE_MAP_REGISTER(_enum_name, _enum_name##_map, _desc, AIM_LOG_INTERNAL);
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb.x>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape.x>
return 0;
}
void __arm64_nxp_ls2080ardb_module_init__(void)
void __arm64_nxp_layerscape_module_init__(void)
{
AIM_LOG_STRUCT_REGISTER();
datatypes_init__();

View File

@@ -23,7 +23,7 @@
*
***********************************************************/
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
#if ONLPSIM_CONFIG_INCLUDE_UCLI == 1
@@ -32,9 +32,9 @@
#include <uCli/ucli_handler_macros.h>
static ucli_status_t
arm64_nxp_ls2080ardb_ucli_ucli__config__(ucli_context_t* uc)
arm64_nxp_layerscape_ucli_ucli__config__(ucli_context_t* uc)
{
UCLI_HANDLER_MACRO_MODULE_CONFIG(arm64_nxp_ls2080ardb)
UCLI_HANDLER_MACRO_MODULE_CONFIG(arm64_nxp_layerscape)
}
/* <auto.ucli.handlers.start> */
@@ -44,37 +44,37 @@ arm64_nxp_ls2080ardb_ucli_ucli__config__(ucli_context_t* uc)
* source file.
*
*****************************************************************************/
static ucli_command_handler_f arm64_nxp_ls2080ardb_ucli_ucli_handlers__[] =
static ucli_command_handler_f arm64_nxp_layerscape_ucli_ucli_handlers__[] =
{
arm64_nxp_ls2080ardb_ucli_ucli__config__,
arm64_nxp_layerscape_ucli_ucli__config__,
NULL
};
/******************************************************************************/
/* <auto.ucli.handlers.end> */
static ucli_module_t
arm64_nxp_ls2080ardb_ucli_module__ =
arm64_nxp_layerscape_ucli_module__ =
{
"arm64_nxp_ls2080ardb_ucli",
"arm64_nxp_layerscape_ucli",
NULL,
arm64_nxp_ls2080ardb_ucli_ucli_handlers__,
arm64_nxp_layerscape_ucli_ucli_handlers__,
NULL,
NULL,
};
ucli_node_t*
arm64_nxp_ls2080ardb_ucli_node_create(void)
arm64_nxp_layerscape_ucli_node_create(void)
{
ucli_node_t* n;
ucli_module_init(&arm64_nxp_ls2080ardb_ucli_module__);
n = ucli_node_create("arm64_nxp_ls2080ardb", NULL, &arm64_nxp_ls2080ardb_ucli_module__);
ucli_node_subnode_add(n, ucli_module_log_node_create("arm64_nxp_ls2080ardb"));
ucli_module_init(&arm64_nxp_layerscape_ucli_module__);
n = ucli_node_create("arm64_nxp_layerscape", NULL, &arm64_nxp_layerscape_ucli_module__);
ucli_node_subnode_add(n, ucli_module_log_node_create("arm64_nxp_layerscape"));
return n;
}
#else
void*
arm64_nxp_ls2080ardb_ucli_node_create(void)
arm64_nxp_layerscape_ucli_node_create(void)
{
return NULL;
}

View File

@@ -23,7 +23,7 @@
*
***********************************************************/
#include <onlp/platformi/fani.h>
#include "arm64_nxp_ls2080ardb_int.h"
#include "arm64_nxp_layerscape_int.h"
/*
* This function will be called prior to all of onlp_fani_* functions.

View File

@@ -22,7 +22,7 @@
*
***********************************************************/
#include <onlp/platformi/ledi.h>
#include "arm64_nxp_ls2080ardb_int.h"
#include "arm64_nxp_layerscape_int.h"
int
onlp_ledi_init(void)

View File

@@ -23,7 +23,7 @@
#
############################################################
LIBRARY := arm64_nxp_ls2080ardb
LIBRARY := arm64_nxp_layerscape
$(LIBRARY)_SUBDIR := $(dir $(lastword $(MAKEFILE_LIST)))
#$(LIBRARY)_LAST := 1
include $(BUILDER)/lib.mk

View File

@@ -23,7 +23,7 @@
*
***********************************************************/
#include <onlp/platformi/psui.h>
#include "arm64_nxp_ls2080ardb_int.h"
#include "arm64_nxp_layerscape_int.h"
int
onlp_psui_init(void)

View File

@@ -22,8 +22,8 @@
*
***********************************************************/
#include <onlp/platformi/sfpi.h>
#include <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
#include "arm64_nxp_ls2080ardb_log.h"
#include <arm64_nxp_layerscape/arm64_nxp_layerscape_config.h>
#include "arm64_nxp_layerscape_log.h"
static int sfp_count__ = ONLPSIM_CONFIG_SFP_COUNT;

View File

@@ -24,12 +24,27 @@
***********************************************************/
#include <onlp/platformi/sysi.h>
#include <onlplib/crc32.h>
#include "arm64_nxp_ls2080ardb_log.h"
#include "arm64_nxp_layerscape_log.h"
#include "arm64_nxp_layerscape_int.h"
platform_id_t platform_id = PLATFORM_ID_INVALID;
const char*
onlp_sysi_platform_get(void)
{
return "arm64-nxp-ls2088ardb-r1";
return "arm64-nxp-layerscape";
}
int
onlp_sysi_platform_set(const char* platform)
{
if(platform_id_value(platform, &platform_id, 0) == 0) {
/* Platform supported */
return ONLP_STATUS_OK;
}
AIM_LOG_ERROR("No support for platform '%s'", platform);
return ONLP_STATUS_E_UNSUPPORTED;
}
int

View File

@@ -23,7 +23,7 @@
*
***********************************************************/
#include <onlp/platformi/thermali.h>
#include "arm64_nxp_ls2080ardb_log.h"
#include "arm64_nxp_layerscape_log.h"
int
onlp_thermali_init(void)

View File

@@ -0,0 +1,80 @@
############################################################
#
# PKG template for all platform-config packages.
#
############################################################
variables:
LS2088: arm64-nxp-ls2088ardb-r0
LS1043: arm64-nxp-ls1043ardb-r0
LS1046: arm64-nxp-ls1046ardb-r0
LS1088: arm64-nxp-ls1088ardb-r0
prerequisites:
packages:
- "onl-vendor-config-nxp:all"
- "onl-platform-modules-arm64-nxp-ls2088ardb:arm64"
- "onl-platform-modules-arm64-nxp-ls1043ardb:arm64"
- "onl-platform-modules-arm64-nxp-ls1046ardb:arm64"
- "onl-platform-modules-arm64-nxp-ls1088ardb:arm64"
common:
version: 1.0.0
arch: arm64
copyright: Copyright 2013, 2014, 2015 Big Switch Networks
maintainer: support@bigswitch.com
support: opennetworklinux@googlegroups.com
changelog: None
packages:
- name: onl-platform-config-$LS2088
depends: onl-vendor-config-nxp,onl-platform-modules-arm64-nxp-ls2088ardb
summary: ONL Platform Configuration Package for the $LS2088
files:
src/lib/arm64-nxp-ls2088ardb-r0.yml: /lib/platform-config/$LS2088/onl/arm64-nxp-ls2088ardb-r0.yml
src/python/arm64_nxp_ls2088ardb_r0 : ${PY_INSTALL}/onl/platform/arm64_nxp_ls2088ardb_r0
- name: onl-platform-build-$LS2088
summary: ONL Platform Build Package for the $LS2088
optional-files:
builds: $$PKG_INSTALL
- name: onl-platform-config-$LS1043
depends: onl-vendor-config-nxp,onl-platform-modules-arm64-nxp-ls1043ardb
summary: ONL Platform Configuration Package for the $LS1043
files:
src/lib/arm64-nxp-ls1043ardb-r0.yml: /lib/platform-config/$LS2088/onl/arm64-nxp-ls1043ardb-r0.yml
src/python/arm64_nxp_ls1043ardb_r0 : ${PY_INSTALL}/onl/platform/arm64_nxp_ls1043ardb_r0
- name: onl-platform-build-$LS1043
summary: ONL Platform Build Package for the $LS1043
optional-files:
builds: $$PKG_INSTALL
- name: onl-platform-config-$LS1046
depends: onl-vendor-config-nxp,onl-platform-modules-arm64-nxp-ls1046ardb
summary: ONL Platform Configuration Package for the $LS1046
files:
src/lib/arm64-nxp-ls1046ardb-r0.yml: /lib/platform-config/$LS1046/onl/arm64-nxp-ls1046ardb-r0.yml
src/python/arm64_nxp_ls1046ardb_r0 : ${PY_INSTALL}/onl/platform/arm64_nxp_ls1046ardb_r0
- name: onl-platform-build-$LS1046
summary: ONL Platform Build Package for the $LS1046
optional-files:
builds: $$PKG_INSTALL
- name: onl-platform-config-$LS1088
depends: onl-vendor-config-nxp,onl-platform-modules-arm64-nxp-ls1088ardb
summary: ONL Platform Configuration Package for the $LS1088
files:
src/lib/arm64-nxp-ls1088ardb-r0.yml: /lib/platform-config/$LS1088/onl/arm64-nxp-ls1088ardb-r0.yml
src/python/arm64_nxp_ls1088ardb_r0 : ${PY_INSTALL}/onl/platform/arm64_nxp_ls1088ardb_r0
- name: onl-platform-build-$LS1088
summary: ONL Platform Build Package for the $LS1088
optional-files:
builds: $$PKG_INSTALL

View File

@@ -2,16 +2,16 @@
######################################################################
#
# platform-config for LS2088ARDB
# platform-config for LS1043ARDB
#
######################################################################
arm64-nxp-ls2088ardb-r1:
arm64-nxp-ls1043ardb-r0:
flat_image_tree:
kernel:
<<: *arm64-kernel
dtb:
=: arm64-nxp-ls2088ardb-r1.dtb
=: fsl-ls1043a-rdb.dtb
<<: *arm64-kernel-package
itb:
<<: *arm64-itb
@@ -23,7 +23,7 @@ arm64-nxp-ls2088ardb-r1:
nos_bootcmds: *mmc_bootcmds
environment:
- device: /dev/mtd2
- device: /dev/mtd3
env_offset: 0x00000000
env_size: 0x00020000
sector_size: 0x00020000

View File

@@ -0,0 +1,44 @@
---
######################################################################
#
# platform-config for LS1046ARDB
#
######################################################################
arm64-nxp-ls1046ardb-r0:
flat_image_tree:
kernel:
<<: *arm64-kernel
dtb:
=: fsl-ls1046a-rdb.dtb
<<: *arm64-kernel-package
itb:
<<: *arm64-itb
loader:
device: /dev/mmcblk0
##partition: /dev/mmcblk0p1
loadaddr: 0xa0000000
nos_bootcmds: *mmc_bootcmds
environment:
- device: /dev/mtd-uboot-env
env_offset: 0x00000000
env_size: 0x00020000
sector_size: 0x00020000
installer:
- ONL-BOOT:
=: 128MiB
format: ext2
##format: raw
- ONL-CONFIG:
=: 128MiB
format: ext4
- ONL-IMAGES:
=: 1GiB
format: ext4
- ONL-DATA:
=: 100%
format: ext4

View File

@@ -0,0 +1,44 @@
---
######################################################################
#
# platform-config for LS2088ARDB
#
######################################################################
arm64-nxp-ls1088ardb-r0:
flat_image_tree:
kernel:
<<: *arm64-kernel
dtb:
=: fsl-ls1088a-rdb.dtb
<<: *arm64-kernel-package
itb:
<<: *arm64-itb
loader:
device: /dev/mmcblk0
##partition: /dev/sda1
loadaddr: 0xa0000000
nos_bootcmds: *usb_bootcmds
environment:
- device: /dev/mtd-uboot-env
env_offset: 0x00000000
env_size: 0x0002000
sector_size: 0x00020000
installer:
- ONL-BOOT:
=: 128MiB
format: ext2
##format: raw
- ONL-CONFIG:
=: 128MiB
format: ext4
- ONL-IMAGES:
=: 1GiB
format: ext4
- ONL-DATA:
=: 100%
format: ext4

View File

@@ -2,22 +2,22 @@
######################################################################
#
# platform-config for LS2080ARDB
# platform-config for LS2088ARDB
#
######################################################################
arm64-nxp-ls2080ardb-r0:
arm64-nxp-ls2088ardb-r0:
flat_image_tree:
kernel:
<<: *arm64-kernel
dtb:
=: arm64-nxp-ls2080ardb-r0.dtb
=: fsl-ls2088a-rdb.dtb
<<: *arm64-kernel-package
itb:
<<: *arm64-itb
loader:
device: /dev/sda
device: /dev/mmcblk0
##partition: /dev/sda1
loadaddr: 0xa0000000
nos_bootcmds: *usb_bootcmds

View File

@@ -0,0 +1,8 @@
from onl.platform.base import *
from onl.platform.nxp import *
class OnlPlatform_arm64_nxp_ls1043ardb_r0(OnlPlatformNxp,
OnlPlatformPortConfig_8x1_8x10):
PLATFORM='arm64-nxp-ls1043ardb-r0'
MODEL="LS1043ARDB"
SYS_OBJECT_ID=".1043"

View File

@@ -0,0 +1,8 @@
from onl.platform.base import *
from onl.platform.nxp import *
class OnlPlatform_arm64_nxp_ls1046ardb_r0(OnlPlatformNxp,
OnlPlatformPortConfig_8x1_8x10):
PLATFORM='arm64-nxp-ls1046ardb-r0'
MODEL="LS1046ARDB"
SYS_OBJECT_ID=".1046"

View File

@@ -0,0 +1,8 @@
from onl.platform.base import *
from onl.platform.nxp import *
class OnlPlatform_arm64_nxp_ls1088ardb_r0(OnlPlatformNxp,
OnlPlatformPortConfig_8x1_8x10):
PLATFORM='arm64-nxp-ls1088ardb-r0'
MODEL="LS188ARDB"
SYS_OBJECT_ID=".1088"

View File

@@ -1,8 +1,8 @@
from onl.platform.base import *
from onl.platform.nxp import *
class OnlPlatform_arm64_nxp_ls2088ardb_r1(OnlPlatformNxp,
class OnlPlatform_arm64_nxp_ls2088ardb_r0(OnlPlatformNxp,
OnlPlatformPortConfig_8x1_8x10):
PLATFORM='arm64-nxp-ls2088ardb-r1'
PLATFORM='arm64-nxp-ls2088ardb-r0'
MODEL="LS2088ARDB"
SYS_OBJECT_ID=".2088"

View File

@@ -1 +0,0 @@
!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=arm64 VENDOR=nxp BASENAME=arm64-nxp-ls2080ardb

View File

@@ -1,27 +0,0 @@
variables:
platformbase: arm64-nxp-ls2080ardb
r0_install: /lib/platform-config/arm64-nxp-ls2080ardb-r0/onl
r1_install: /lib/platform-config/arm64-nxp-ls2088ardb-r1/onl
common:
version: 1.0.0
arch: arm64
copyright: Copyright 2016 NXP Semiconductor, Inc.
maintainer: support@bigswitch.com
changelog: Change changes changes.,
packages:
- name: onlp-arm64-nxp-ls2080ardb-r0
summary: ONLP Package for the arm64-nxp-ls2080ardb-r0 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${r0_install}/lib/libonlp-${platformbase}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${r0_install}/bin/
- name: onlp-arm64-nxp-ls2088ardb-r1
summary: ONLP Package for the arm64-nxp-ls2088ardb-r1 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${r1_install}/lib/libonlp-${platformbase}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${r1_install}/bin/

View File

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

View File

@@ -1,10 +0,0 @@
###############################################################################
#
# Inclusive Makefile for the libonlp-arm64-nxp-ls2080ardb module.
#
# Autogenerated 2016-06-08 10:25:29.125218
#
###############################################################################
libonlp-arm64-nxp-ls2080ardb_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

View File

@@ -1,101 +0,0 @@
/************************************************************
* <bsn.cl fy=2014 v=onl>
*
* Copyright 2016 NXP Semiconductor, 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 <arm64_nxp_ls2080ardb/arm64_nxp_ls2080ardb_config.h>
/* <auto.start.cdefs(ONLPSIM_CONFIG_HEADER).source> */
#define __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(_x) #_x
#define __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(_x) __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(_x)
arm64_nxp_ls2080ardb_config_settings_t arm64_nxp_ls2080ardb_config_settings[] =
{
#ifdef ONLPSIM_CONFIG_INCLUDE_LOGGING
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_INCLUDE_LOGGING), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_INCLUDE_LOGGING) },
#else
{ ONLPSIM_CONFIG_INCLUDE_LOGGING(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT) },
#else
{ ONLPSIM_CONFIG_LOG_OPTIONS_DEFAULT(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_LOG_BITS_DEFAULT
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_LOG_BITS_DEFAULT), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_LOG_BITS_DEFAULT) },
#else
{ ONLPSIM_CONFIG_LOG_BITS_DEFAULT(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT) },
#else
{ ONLPSIM_CONFIG_LOG_CUSTOM_BITS_DEFAULT(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_PORTING_STDLIB
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_PORTING_STDLIB), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_PORTING_STDLIB) },
#else
{ ONLPSIM_CONFIG_PORTING_STDLIB(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS) },
#else
{ ONLPSIM_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_INCLUDE_UCLI
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_INCLUDE_UCLI), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_INCLUDE_UCLI) },
#else
{ ONLPSIM_CONFIG_INCLUDE_UCLI(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
#ifdef ONLPSIM_CONFIG_SFP_COUNT
{ __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME(ONLPSIM_CONFIG_SFP_COUNT), __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE(ONLPSIM_CONFIG_SFP_COUNT) },
#else
{ ONLPSIM_CONFIG_SFP_COUNT(__arm64_nxp_ls2080ardb_config_STRINGIFY_NAME), "__undefined__" },
#endif
{ NULL, NULL }
};
#undef __arm64_nxp_ls2080ardb_config_STRINGIFY_VALUE
#undef __arm64_nxp_ls2080ardb_config_STRINGIFY_NAME
const char*
arm64_nxp_ls2080ardb_config_lookup(const char* setting)
{
int i;
for(i = 0; arm64_nxp_ls2080ardb_config_settings[i].name; i++) {
if(!strcmp(arm64_nxp_ls2080ardb_config_settings[i].name, setting)) {
return arm64_nxp_ls2080ardb_config_settings[i].value;
}
}
return NULL;
}
int
arm64_nxp_ls2080ardb_config_show(struct aim_pvs_s* pvs)
{
int i;
for(i = 0; arm64_nxp_ls2080ardb_config_settings[i].name; i++) {
aim_printf(pvs, "%s = %s\n", arm64_nxp_ls2080ardb_config_settings[i].name, arm64_nxp_ls2080ardb_config_settings[i].value);
}
return i;
}
/* <auto.end.cdefs(ONLPSIM_CONFIG_HEADER).source> */

View File

@@ -1 +0,0 @@
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=arm64 VENDOR=nxp BASENAME=arm64-nxp-ls2080ardb REVISION=r0

View File

@@ -1,8 +0,0 @@
from onl.platform.base import *
from onl.platform.nxp import *
class OnlPlatform_arm64_nxp_ls2080ardb_r0(OnlPlatformNxp,
OnlPlatformPortConfig_8x1_8x10):
PLATFORM='arm64-nxp-ls2080ardb-r0'
MODEL="LS2080ARDB"
SYS_OBJECT_ID=".2080"

View File

@@ -1,2 +0,0 @@
*arm64*nxp*ls2080ardb*.mk
onlpdump.mk

View File

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

View File

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

View File

@@ -1 +0,0 @@
!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=arm64 VENDOR=nxp BASENAME=arm64-nxp-ls2088ardb

View File

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

View File

@@ -1,27 +0,0 @@
variables:
platformbase: arm64-nxp-ls2080ardb
r0_install: /lib/platform-config/arm64-nxp-ls2080ardb-r0/onl
r1_install: /lib/platform-config/arm64-nxp-ls2088ardb-r1/onl
common:
version: 1.0.0
arch: arm64
copyright: Copyright 2016 NXP Semiconductor, Inc.
maintainer: support@bigswitch.com
changelog: Change changes changes.,
packages:
- name: onlp-arm64-nxp-ls2080ardb-r0
summary: ONLP Package for the arm64-nxp-ls2080ardb-r0 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${r0_install}/lib/libonlp-${platformbase}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${r0_install}/bin/
- name: onlp-arm64-nxp-ls2088ardb-r1
summary: ONLP Package for the arm64-nxp-ls2088ardb-r1 platform.
files:
builds/lib/$BUILD_DIR/aarch64-linux-gnu/bin/libonlp-${platformbase}.so : ${r1_install}/lib/libonlp-${platformbase}.so
builds/onlpdump/$BUILD_DIR/aarch64-linux-gnu/bin/onlpdump : ${r1_install}/bin/

View File

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

View File

@@ -1,44 +0,0 @@
############################################################
# <bsn.cl fy=2016 v=onl>
#
# Copyright 2016 NXP Semiconductor, 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.arm64.mk
MODULE := libonlp-arm64-nxp-ls2080ardb
include $(BUILDER)/standardinit.mk
DEPENDMODULES := AIM IOF arm64_nxp_ls2080ardb onlplib
DEPENDMODULE_HEADERS := sff
include $(BUILDER)/dependmodules.mk
SHAREDLIB := libonlp-arm64-nxp-ls2080ardb.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

@@ -1,45 +0,0 @@
############################################################
# <bsn.cl fy=2016 v=onl>
#
# Copyright 2016 NXP Semiconductor, 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.arm64.mk
.DEFAULT_GOAL := onlpdump
MODULE := onlpdump
include $(BUILDER)/standardinit.mk
DEPENDMODULES := AIM IOF onlp arm64_nxp_ls2080ardb 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

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

View File

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

View File

@@ -1 +0,0 @@
!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=arm64 VENDOR=nxp BASENAME=arm64-nxp-ls2088ardb REVISION=r1