############################################################
# <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>
############################################################
#
# onlp_platform_defaults Autogeneration Definitions.
#
############################################################

cdefs: &cdefs
- ONLP_PLATFORM_DEFAULTS_CONFIG_INCLUDE_LOGGING:
    doc: "Include or exclude logging."
    default: 1
- ONLP_PLATFORM_DEFAULTS_CONFIG_LOG_OPTIONS_DEFAULT:
    doc: "Default enabled log options."
    default: AIM_LOG_OPTIONS_DEFAULT
- ONLP_PLATFORM_DEFAULTS_CONFIG_LOG_BITS_DEFAULT:
    doc: "Default enabled log bits."
    default: AIM_LOG_BITS_DEFAULT
- ONLP_PLATFORM_DEFAULTS_CONFIG_LOG_CUSTOM_BITS_DEFAULT:
    doc: "Default enabled custom log bits."
    default: 0
- ONLP_PLATFORM_DEFAULTS_CONFIG_PORTING_STDLIB:
    doc: "Default all porting macros to use the C standard libraries."
    default: 1
- ONLP_PLATFORM_DEFAULTS_CONFIG_PORTING_INCLUDE_STDLIB_HEADERS:
    doc: "Include standard library headers for stdlib porting macros."
    default: ONLP_PLATFORM_DEFAULTS_CONFIG_PORTING_STDLIB
- ONLP_PLATFORM_DEFAULTS_CONFIG_INCLUDE_UCLI:
    doc: "Include generic uCli support."
    default: 0
- ONLP_PLATFORM_DEFAULTS_CONFIG_AS_PLATFORM:
    doc: "Build as the onlp-platform library stub."
    default: 0

log_types: &log_types
- called

definitions:
  cdefs:
    ONLP_PLATFORM_DEFAULTS_CONFIG_HEADER:
      defs: *cdefs
      basename: onlp_platform_defaults_config

  aim_custom_log_macro:
    onlp_platform_defaults:
      flags: *log_types
      prefix: ONLP_PLATFORM_DEFAULTS_LOG_FLAG_

  enum: &enum
    onlp_platform_defaults_log_flag:
      members: *log_types

  portingmacro:
    ONLP_PLATFORM_DEFAULTS:
      macros:
        - memset
        - memcpy
        - strncpy
        - strlen
