diff --git a/make/kbuild.mk b/make/kbuild.mk index 7355ed6f..7fdfd7ac 100644 --- a/make/kbuild.mk +++ b/make/kbuild.mk @@ -123,7 +123,7 @@ $(K_ARCHIVE_PATH): # The extracted kernel sources # $(K_SOURCE_DIR)/Makefile: $(K_ARCHIVE_PATH) - cd $(K_TARGET_DIR) && tar kxf $(K_ARCHIVE_PATH) + mkdir -p $(K_TARGET_DIR) && cd $(K_TARGET_DIR) && tar kxf $(K_ARCHIVE_PATH) touch -c $(K_SOURCE_DIR)/Makefile $(K_MAKE) mrproper diff --git a/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/PKG.yml b/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/PKG.yml index 4165c4c6..caa39f8a 100644 --- a/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/PKG.yml +++ b/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/PKG.yml @@ -1,29 +1 @@ -variables: - basename: onl-kernel-3.16-lts-x86-64-all - -common: - arch: amd64 - version: 1.0.0 - copyright: Copyright 2013, 2014, 2015 Big Switch Networks - maintainer: support@bigswitch.com - support: opennetworklinux@googlegroups.com - -packages: - - name: $basename - version: 1.0.0 - summary: Open Network Linux 3.16 LTS Kernel for X86_64 Platforms. - - files: - builds/kernel-3.16* : $$PKG_INSTALL/ - builds/linux-*mbuild : $$PKG_INSTALL/mbuilds - - changelog: Change changes changes., - - - name: $basename-modules - version: 1.0.0 - summary: Open Network Linux 3.16 LTS Kernel Modules for X86_64 Platforms - - files: - builds/lib: /lib - - changelog: Change changes changes., +!include $ONL/packages/base/any/kernels/lts/APKG.yml VERSION=3.16 ARCH=amd64 CONFIG=x86-64-all diff --git a/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/builds/Makefile b/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/builds/Makefile index a01c2479..d970a73e 100644 --- a/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/builds/Makefile +++ b/packages/base/amd64/kernels/kernel-3.16-lts-x86-64-all/builds/Makefile @@ -1,21 +1,5 @@ -# -*- Makefile -*- -############################################################ -# -# -# Copyright 2013, 2014 BigSwitch Networks, Inc. -# -# -# -# -############################################################ -THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) - -include $(ONL)/make/config.mk - -kernel: - rm -rf lib - $(MAKE) -C $(ONL)/packages/base/any/kernels/3.16-lts/configs/x86_64-all K_TARGET_DIR=$(THIS_DIR) $(ONL_MAKE_PARALLEL) - ARCH=x86_64 $(ONL)/tools/scripts/kmodbuild.sh linux-3.16.*-mbuild "$(wildcard $(ONL)/packages/base/any/kernels/modules/*)" onl/onl/common - -clean: - rm -rf linux-3.16* kernel-3.16* +KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +KERNEL_ARCH := x86_64 +KERNEL_LTS_VERSION := 3.16 +KERNEL_CONFIG := x86_64-all +include $(ONL)/packages/base/any/kernels/lts/builds/Makefile diff --git a/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/PKG.yml b/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/PKG.yml index fb1574b2..97102225 100644 --- a/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/PKG.yml +++ b/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/PKG.yml @@ -1,29 +1 @@ -variables: - basename: onl-kernel-3.2-lts-x86-64-all - -common: - arch: amd64 - version: 1.0.0 - copyright: Copyright 2013, 2014, 2015 Big Switch Networks - maintainer: support@bigswitch.com - support: opennetworklinux@googlegroups.com - -packages: - - name: $basename - version: 1.0.0 - summary: Open Network Linux 3.2 LTS Kernel for X86_64 Platforms. - - files: - builds/kernel-3.2* : $$PKG_INSTALL/ - builds/linux-*mbuild : $$PKG_INSTALL/mbuilds - - changelog: Change changes changes., - - - name: $basename-modules - version: 1.0.0 - summary: Open Network Linux 3.2 LTS Kernel Modules for X86_64 Platforms - - files: - builds/lib: /lib - - changelog: Change changes changes., +!include $ONL/packages/base/any/kernels/lts/APKG.yml VERSION=3.2 ARCH=amd64 CONFIG=x86-64-all diff --git a/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/builds/Makefile b/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/builds/Makefile index 3afd0097..da9f343d 100644 --- a/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/builds/Makefile +++ b/packages/base/amd64/kernels/kernel-3.2-lts-x86-64-all/builds/Makefile @@ -1,21 +1,5 @@ -# -*- Makefile -*- -############################################################ -# -# -# Copyright 2013, 2014 BigSwitch Networks, Inc. -# -# -# -# -############################################################ -THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) - -include $(ONL)/make/config.mk - -kernel: - $(MAKE) -C $(ONL)/packages/base/any/kernels/3.2-lts/configs/x86_64-all K_TARGET_DIR=$(THIS_DIR) $(ONL_MAKE_PARALLEL) - rm -rf lib - ARCH=x86_64 $(ONL)/tools/scripts/kmodbuild.sh linux-3.2.84-mbuild "$(wildcard $(ONL)/packages/base/any/kernels/modules/*)" onl/onl/common - -clean: - rm -rf linux-3.2* kernel-3.2* +KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +KERNEL_ARCH := x86_64 +KERNEL_LTS_VERSION := 3.2 +KERNEL_CONFIG := x86_64-all +include $(ONL)/packages/base/any/kernels/lts/builds/Makefile diff --git a/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/PKG.yml b/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/PKG.yml index 1c27486e..7b0d7be0 100644 --- a/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/PKG.yml +++ b/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/PKG.yml @@ -1,30 +1 @@ -variables: - basename: onl-kernel-4.14-lts-x86-64-all - -common: - arch: amd64 - version: 1.0.0 - copyright: Copyright 2013, 2014, 2015 Big Switch Networks - maintainer: support@bigswitch.com - support: opennetworklinux@googlegroups.com - -packages: - - name: $basename - version: 1.0.0 - summary: Open Network Linux 4.14 LTS Kernel for X86_64 Platforms. - symlinks: True - - files: - builds/kernel-4.14* : $$PKG_INSTALL/ - builds/linux-*mbuild : $$PKG_INSTALL/mbuilds - - changelog: Change changes changes., - - - name: $basename-modules - version: 1.0.0 - summary: Open Network Linux 4.14 LTS Kernel Modules for X86_64 Platforms - - files: - builds/lib: /lib - - changelog: Change changes changes., +!include $ONL/packages/base/any/kernels/lts/APKG.yml VERSION=4.14 ARCH=amd64 CONFIG=x86-64-all diff --git a/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/builds/Makefile b/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/builds/Makefile index 6d9fb290..2e263a46 100644 --- a/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/builds/Makefile +++ b/packages/base/amd64/kernels/kernel-4.14-lts-x86-64-all/builds/Makefile @@ -1,22 +1,8 @@ -# -*- Makefile -*- -############################################################ -# -# -# Copyright 2013, 2014 BigSwitch Networks, Inc. -# -# -# -# -############################################################ -THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +KERNEL_ARCH := x86_64 +KERNEL_LTS_VERSION := 4.14 +KERNEL_CONFIG := x86_64-all +include $(ONL)/packages/base/any/kernels/lts/builds/Makefile -include $(ONL)/make/config.mk - -kernel: - rm -rf lib +setup:: dpkg -l libelf-dev > /dev/null 2>&1 || sudo apt-get install libelf-dev - $(MAKE) -C $(ONL)/packages/base/any/kernels/4.14-lts/configs/x86_64-all K_TARGET_DIR=$(THIS_DIR) $(ONL_MAKE_PARALLEL) - ARCH=x86_64 $(ONL)/tools/scripts/kmodbuild.sh linux-4.14.*-mbuild "$(wildcard $(ONL)/packages/base/any/kernels/modules/*)" onl/onl/common - -clean: - rm -rf linux-4.14* kernel-4.14* lib diff --git a/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/PKG.yml b/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/PKG.yml index 0408411c..08f0d03c 100644 --- a/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/PKG.yml +++ b/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/PKG.yml @@ -1,29 +1 @@ -variables: - basename: onl-kernel-4.9-lts-x86-64-all - -common: - arch: amd64 - version: 1.0.0 - copyright: Copyright 2013, 2014, 2015 Big Switch Networks - maintainer: support@bigswitch.com - support: opennetworklinux@googlegroups.com - -packages: - - name: $basename - version: 1.0.0 - summary: Open Network Linux 4.9 LTS Kernel for X86_64 Platforms. - - files: - builds/kernel-4.9* : $$PKG_INSTALL/ - builds/linux-*mbuild : $$PKG_INSTALL/mbuilds - - changelog: Change changes changes., - - - name: $basename-modules - version: 1.0.0 - summary: Open Network Linux 4.9 LTS Kernel Modules for X86_64 Platforms - - files: - builds/lib: /lib - - changelog: Change changes changes., +!include $ONL/packages/base/any/kernels/lts/APKG.yml VERSION=4.9 ARCH=amd64 CONFIG=x86-64-all diff --git a/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/builds/Makefile b/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/builds/Makefile index 7ce691aa..330bd688 100644 --- a/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/builds/Makefile +++ b/packages/base/amd64/kernels/kernel-4.9-lts-x86-64-all/builds/Makefile @@ -1,21 +1,5 @@ -# -*- Makefile -*- -############################################################ -# -# -# Copyright 2013, 2014 BigSwitch Networks, Inc. -# -# -# -# -############################################################ -THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) - -include $(ONL)/make/config.mk - -kernel: - rm -rf lib - $(MAKE) -C $(ONL)/packages/base/any/kernels/4.9-lts/configs/x86_64-all K_TARGET_DIR=$(THIS_DIR) $(ONL_MAKE_PARALLEL) - ARCH=x86_64 $(ONL)/tools/scripts/kmodbuild.sh linux-4.9.*-mbuild "$(wildcard $(ONL)/packages/base/any/kernels/modules/*)" onl/onl/common - -clean: - rm -rf linux-4.9* kernel-4.9* +KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +KERNEL_ARCH := x86_64 +KERNEL_LTS_VERSION := 4.9 +KERNEL_CONFIG := x86_64-all +include $(ONL)/packages/base/any/kernels/lts/builds/Makefile diff --git a/packages/base/amd64/upgrade/PKG.yml b/packages/base/amd64/upgrade/PKG.yml index 3717282f..17f16836 100644 --- a/packages/base/amd64/upgrade/PKG.yml +++ b/packages/base/amd64/upgrade/PKG.yml @@ -2,6 +2,7 @@ prerequisites: packages: - onl-kernel-3.16-lts-x86-64-all:amd64 - onl-kernel-4.9-lts-x86-64-all:amd64 + - onl-kernel-4.14-lts-x86-64-all:amd64 - onl-loader-initrd:amd64 common: diff --git a/packages/base/any/kernels/3.2-lts/configs/x86_64-all/x86_64-all.config b/packages/base/any/kernels/3.2-lts/configs/x86_64-all/x86_64-all.config index a15284e4..ff2671ff 100644 --- a/packages/base/any/kernels/3.2-lts/configs/x86_64-all/x86_64-all.config +++ b/packages/base/any/kernels/3.2-lts/configs/x86_64-all/x86_64-all.config @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/x86_64 3.2.84 Kernel Configuration +# Linux/x86_64 3.2.98 Kernel Configuration # CONFIG_64BIT=y # CONFIG_X86_32 is not set @@ -36,7 +36,6 @@ CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_DEFAULT_IDLE=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y -CONFIG_ARCH_HAS_CPU_AUTOPROBE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y @@ -127,7 +126,6 @@ CONFIG_PROC_PID_CPUSET=y CONFIG_CGROUP_CPUACCT=y CONFIG_RESOURCE_COUNTERS=y CONFIG_CGROUP_MEM_RES_CTLR=y -CONFIG_CGROUP_MEM_RES_CTLR_DISABLED=y CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y # CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED is not set CONFIG_CGROUP_PERF=y @@ -728,12 +726,6 @@ CONFIG_NETFILTER_XT_TARGET_TRACE=y CONFIG_NETFILTER_XT_TARGET_SECMARK=y CONFIG_NETFILTER_XT_TARGET_TCPMSS=y CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=y -# CONFIG_NETFILTER_XT_TARGET_ERSPAN is not set -# CONFIG_NETFILTER_XT_TARGET_SPAN is not set -# CONFIG_NETFILTER_XT_TARGET_POLICE is not set -# CONFIG_NETFILTER_XT_TARGET_TRICOLORPOLICE is not set -# CONFIG_NETFILTER_XT_TARGET_SETCLASS is not set -# CONFIG_NETFILTER_XT_TARGET_SETQOS is not set # # Xtables matches @@ -950,7 +942,6 @@ CONFIG_CEPH_LIB=y # CONFIG_CEPH_LIB_PRETTYDEBUG is not set # CONFIG_CEPH_LIB_USE_DNS_RESOLVER is not set # CONFIG_NFC is not set -CONFIG_HAVE_BPF_JIT=y # # Device Drivers @@ -970,7 +961,6 @@ CONFIG_EXTRA_FIRMWARE="" # CONFIG_DEBUG_DRIVER is not set # CONFIG_DEBUG_DEVRES is not set CONFIG_SYS_HYPERVISOR=y -# CONFIG_GENERIC_CPU_DEVICES is not set CONFIG_CONNECTOR=y CONFIG_PROC_EVENTS=y # CONFIG_MTD is not set @@ -1033,11 +1023,6 @@ CONFIG_TI_DAC7512=y # CONFIG_BMP085 is not set # CONFIG_PCH_PHUB is not set # CONFIG_USB_SWITCH_FSA9480 is not set -CONFIG_EARLY_DMA_ALLOC=y -CONFIG_EDA_DEF_SIZE=0x04000000 -CONFIG_EDA_DEF_ALIGN=0x00100000 -# CONFIG_RETIMER_CLASS is not set -# CONFIG_DS100DF410 is not set # CONFIG_C2PORT is not set # @@ -1381,10 +1366,7 @@ CONFIG_NET_VENDOR_INTEL=y # CONFIG_E100 is not set CONFIG_E1000=y CONFIG_E1000E=y -# CONFIG_E1000E_PTP is not set CONFIG_IGB=y -CONFIG_IGB_HWMON=y -# CONFIG_IGB_PTP is not set CONFIG_IGBVF=y CONFIG_IXGB=y CONFIG_IXGBE=y @@ -1410,13 +1392,8 @@ CONFIG_ENC28J60_WRITEVERIFY=y # CONFIG_NET_PACKET_ENGINE is not set # CONFIG_NET_VENDOR_QLOGIC is not set CONFIG_NET_VENDOR_REALTEK=y -CONFIG_ATP=y CONFIG_8139CP=y # CONFIG_8139TOO is not set -# CONFIG_8139TOO_PIO is not set -CONFIG_8139TOO_TUNE_TWISTER=y -CONFIG_8139TOO_8129=y -# CONFIG_8139_OLD_RX_RESET is not set CONFIG_R8169=y # CONFIG_NET_VENDOR_RDC is not set # CONFIG_NET_VENDOR_SEEQ is not set @@ -1486,7 +1463,6 @@ CONFIG_SLHC=y # CONFIG_XEN_NETDEV_FRONTEND is not set # CONFIG_XEN_NETDEV_BACKEND is not set # CONFIG_VMXNET3 is not set -# CONFIG_DPAA_ETH_USE_NDO_SELECT_QUEUE is not set # CONFIG_ISDN is not set # CONFIG_PHONE is not set @@ -1629,7 +1605,6 @@ CONFIG_I2C_MUX_GPIO=y CONFIG_I2C_MUX_PCA9541=y CONFIG_I2C_MUX_PCA954x=y CONFIG_I2C_HELPER_AUTO=y -CONFIG_I2C_ALGOBIT=y CONFIG_I2C_ALGOPCA=y # @@ -1646,7 +1621,6 @@ CONFIG_I2C_ALGOPCA=y # CONFIG_I2C_AMD8111 is not set CONFIG_I2C_I801=y CONFIG_I2C_ISCH=y -CONFIG_I2C_ISMT=y # CONFIG_I2C_PIIX4 is not set # CONFIG_I2C_NFORCE2 is not set # CONFIG_I2C_SIS5595 is not set @@ -1864,8 +1838,6 @@ CONFIG_SENSORS_LTC4261=y # CONFIG_SENSORS_MAX6639 is not set # CONFIG_SENSORS_MAX6642 is not set CONFIG_SENSORS_MAX6650=y -CONFIG_SENSORS_MAX6620=y -# CONFIG_SENSORS_MAX6697 is not set # CONFIG_SENSORS_NTC_THERMISTOR is not set # CONFIG_SENSORS_PC87360 is not set # CONFIG_SENSORS_PC87427 is not set @@ -2041,7 +2013,6 @@ CONFIG_MFD_CORE=y # CONFIG_EZX_PCAP is not set # CONFIG_MFD_CS5535 is not set # CONFIG_MFD_TIMBERDALE is not set -CONFIG_LPC_ICH=y CONFIG_LPC_SCH=y # CONFIG_MFD_RDC321X is not set # CONFIG_MFD_JANZ_CMODIO is not set @@ -2712,7 +2683,6 @@ CONFIG_DETECT_HUNG_TASK=y CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120 # CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 -CONFIG_PANIC_TIMEOUT=5 CONFIG_SCHED_DEBUG=y # CONFIG_SCHEDSTATS is not set CONFIG_TIMER_STATS=y @@ -2833,6 +2803,7 @@ CONFIG_KEYS=y # CONFIG_KEYS_DEBUG_PROC_KEYS is not set # CONFIG_SECURITY_DMESG_RESTRICT is not set # CONFIG_SECURITY is not set +# CONFIG_PAGE_TABLE_ISOLATION is not set # CONFIG_SECURITYFS is not set CONFIG_DEFAULT_SECURITY_DAC=y CONFIG_DEFAULT_SECURITY="" @@ -3004,7 +2975,6 @@ CONFIG_HAS_IOPORT=y CONFIG_HAS_DMA=y CONFIG_CHECK_SIGNATURE=y CONFIG_CPU_RMAP=y -CONFIG_DQL=y CONFIG_NLATTR=y CONFIG_AVERAGE=y CONFIG_CORDIC=y diff --git a/packages/base/any/kernels/lts/APKG.yml b/packages/base/any/kernels/lts/APKG.yml new file mode 100644 index 00000000..b4ec8dd9 --- /dev/null +++ b/packages/base/any/kernels/lts/APKG.yml @@ -0,0 +1,30 @@ +variables: + basename: onl-kernel-$VERSION-lts-$CONFIG + +common: + arch: $ARCH + version: 1.0.0 + copyright: Copyright 2013, 2014, 2015 Big Switch Networks + maintainer: support@bigswitch.com + support: opennetworklinux@googlegroups.com + +packages: + - name: $basename + version: 1.0.0 + summary: Open Network Linux $VERSION LTS Kernel for $ARCH Platforms. + symlinks: True + + files: + builds/$ONL_DEBIAN_SUITE/kernel-* : $$PKG_INSTALL/ + builds/$ONL_DEBIAN_SUITE/linux-*-mbuild : $$PKG_INSTALL/mbuilds + + changelog: Change changes changes., + + - name: $basename-modules + version: 1.0.0 + summary: Open Network Linux $VERSION LTS Kernel Modules for $ARCH Platforms + + files: + builds/$ONL_DEBIAN_SUITE/lib: /lib + + changelog: Change changes changes., diff --git a/packages/base/any/kernels/lts/builds/Makefile b/packages/base/any/kernels/lts/builds/Makefile new file mode 100644 index 00000000..1afcf4ba --- /dev/null +++ b/packages/base/any/kernels/lts/builds/Makefile @@ -0,0 +1,28 @@ +include $(ONL)/make/config.mk + +ifndef KERNEL_BUILD_DIR +$(error $$KERNEL_BUILD_DIR not set) +endif + +ifndef KERNEL_ARCH +$(error $$KERNEL_ARCH not set) +endif + +ifndef KERNEL_LTS_VERSION +$(error $$KERNEL_LTS_VERSION not set) +endif + +ifndef KERNEL_CONFIG +$(error $$KERNEL_CONFIG not set) +endif + +export K_TARGET_DIR := $(KERNEL_BUILD_DIR)/$(ONL_DEBIAN_SUITE) + +kernel: setup + $(MAKE) -C $(ONL)/packages/base/any/kernels/$(KERNEL_LTS_VERSION)-lts/configs/$(KERNEL_CONFIG) $(ONL_MAKE_PARALLEL) + cd $(K_TARGET_DIR) && ARCH=$(KERNEL_ARCH) $(ONL)/tools/scripts/kmodbuild.sh linux-*-mbuild "$(wildcard $(ONL)/packages/base/any/kernels/modules/*)" onl/onl/common + +clean: + rm -rf $(K_TARGET_DIR) + +setup:: diff --git a/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/PKG.yml b/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/PKG.yml index 0f3e7c59..6715975b 100644 --- a/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/PKG.yml +++ b/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/PKG.yml @@ -1,30 +1 @@ -variables: - basename: onl-kernel-3.16-lts-powerpc-e500v-all - -common: - arch: powerpc - version: 1.0.0 - copyright: Copyright 2013, 2014, 2015 Big Switch Networks - maintainer: support@bigswitch.com - support: opennetworklinux@googlegroups.com - -packages: - - name: $basename - version: 1.0.0 - summary: Open Network Linux Kernel 3.16-lts for PowerPC e500v platforms. - - files: - builds/kernel-3.16* : $$PKG_INSTALL/ - builds/linux-*mbuild : $$PKG_INSTALL/mbuilds - - changelog: Change changes changes., - - - name: $basename-modules - version: 1.0.0 - summary: Open Network Linux 3.16 LTS Kernel Modules for PowerPC e500v Platforms - - files: - - changelog: Change changes changes., - - +!include $ONL/packages/base/any/kernels/lts/APKG.yml VERSION=3.16 ARCH=powerpc CONFIG=powerpc-e500v-all diff --git a/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/builds/Makefile b/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/builds/Makefile index 7c227d1e..c6edcf7f 100644 --- a/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/builds/Makefile +++ b/packages/base/powerpc/kernels/kernel-3.16-lts-powerpc-e500v-all/builds/Makefile @@ -1,19 +1,5 @@ -# -*- Makefile -*- -############################################################ -# -# -# Copyright 2013, 2014 BigSwitch Networks, Inc. -# -# -# -# -############################################################ -THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) - -include $(ONL)/make/config.mk - -kernel: - $(MAKE) -C $(ONL)/packages/base/any/kernels/3.16-lts/configs/powerpc-e500v-all K_TARGET_DIR=$(THIS_DIR) K_COPY_DST=kernel-3.16-lts-powerpc-e500v-all.bin.gz $(ONL_MAKE_PARALLEL) - -clean: - rm -rf linux-3.16.39 linux-3.16.39-mbuild +KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) +KERNEL_ARCH := powerpc +KERNEL_LTS_VERSION := 3.16 +KERNEL_CONFIG := powerpc-e500v-all +include $(ONL)/packages/base/any/kernels/lts/builds/Makefile diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410/onlp/builds/src/module/src/sysi.c b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410/onlp/builds/src/module/src/sysi.c index 6ee04ede..31262f17 100644 --- a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410/onlp/builds/src/module/src/sysi.c +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410/onlp/builds/src/module/src/sysi.c @@ -74,6 +74,12 @@ onlp_sysi_platform_set(const char* platform) mc_get_platform_info(mlnx_platform); return ONLP_STATUS_OK; } + if(!strcmp(platform, "x86-64-mlnx-msn2410b-r0")) { + __ONL_PLATFORM_NAME = "x86-64-mlnx_msn2410b-r0"; + mlnx_platform = get_platform_info(); + mc_get_platform_info(mlnx_platform); + return ONLP_STATUS_OK; + } if(!strcmp(platform, "x86-64-mlnx-msn2410-all")) { __ONL_PLATFORM_NAME = "x86-64-mlnx-msn2410-all"; return ONLP_STATUS_OK; diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/.gitignore b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/.gitignore new file mode 100644 index 00000000..3edba0a7 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/.gitignore @@ -0,0 +1,3 @@ +*x86-64*.mk +*x86_64*.mk +onlpdump.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/modules/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/modules/Makefile new file mode 100644 index 00000000..003238cf --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/modules/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk \ No newline at end of file diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/modules/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/modules/PKG.yml new file mode 100644 index 00000000..b1c9cfa2 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/modules/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-msn2410b diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/PKG.yml new file mode 100644 index 00000000..ef836c03 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=x86-64-mlnx-msn2410b ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/Makefile new file mode 100644 index 00000000..e7437cb2 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/Makefile @@ -0,0 +1,2 @@ +FILTER=src +include $(ONL)/make/subdirs.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/lib/Makefile new file mode 100644 index 00000000..973ba049 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/lib/Makefile @@ -0,0 +1,45 @@ +############################################################ +# +# +# 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. +# +# +############################################################ +# +# +############################################################ +include $(ONL)/make/config.amd64.mk + +MODULE := libonlp-x86-64-mlnx-msn2410b +include $(BUILDER)/standardinit.mk + +DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2410 onlplib +DEPENDMODULE_HEADERS := sff + +include $(BUILDER)/dependmodules.mk + +SHAREDLIB := libonlp-x86-64-mlnx-msn2410b.so +$(SHAREDLIB)_TARGETS := $(ALL_TARGETS) +include $(BUILDER)/so.mk +.DEFAULT_GOAL := $(SHAREDLIB) + +GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc +GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc +GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1 +GLOBAL_CFLAGS += -fPIC +GLOBAL_LINK_LIBS += -lpthread + +include $(BUILDER)/targets.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/onlpdump/Makefile new file mode 100644 index 00000000..c245c8e1 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/onlp/builds/onlpdump/Makefile @@ -0,0 +1,46 @@ +############################################################ +# +# +# 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. +# +# +############################################################ +# +# +# +############################################################ +include $(ONL)/make/config.amd64.mk + +.DEFAULT_GOAL := onlpdump + +MODULE := onlpdump +include $(BUILDER)/standardinit.mk + +DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2410 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_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc +GLOBAL_LINK_LIBS += -lpthread -lm + +include $(BUILDER)/targets.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/PKG.yml new file mode 100644 index 00000000..5863a4f7 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-msn2410b REVISION=r0 diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/src/lib/x86-64-mlnx-msn2410b-r0.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/src/lib/x86-64-mlnx-msn2410b-r0.yml new file mode 100644 index 00000000..ea1564c0 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/src/lib/x86-64-mlnx-msn2410b-r0.yml @@ -0,0 +1,36 @@ +--- + +###################################################################### +# +# platform-config for Mellanox 2410B +# +###################################################################### + +x86-64-mlnx-msn2410b-r0: + + grub: + + serial: >- + --unit=0 + --speed=115200 + --word=8 + --parity=0 + --stop=1 + + kernel: + <<: *kernel-4-9 + + args: >- + nopat + console=ttyS0,115200n8 + rd_NO_MD + rd_NO_LUKS + acpi_enforce_resources=lax + acpi=noirq + i2c-ismt.enable=0 + + ##network + ## interfaces: + ## ma1: + ## name: ~ + ## syspath: pci0000:00/0000:00:14.0 diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/src/python/x86_64_mlnx_msn2410b_r0/__init__.py b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/src/python/x86_64_mlnx_msn2410b_r0/__init__.py new file mode 100644 index 00000000..80772119 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2410b/platform-config/r0/src/python/x86_64_mlnx_msn2410b_r0/__init__.py @@ -0,0 +1,17 @@ +from onl.platform.base import * +from onl.platform.mellanox import * + +class OnlPlatform_x86_64_mlnx_msn2410b_r0(OnlPlatformMellanox, + OnlPlatformPortConfig_32x40): + PLATFORM='x86-64-mlnx-msn2410b-r0' + MODEL="MSN2410B" + SYS_OBJECT_ID=".2410.2" + + def baseconfig(self): + # load modules + import os + # necessary if there are issues with the install + # os.system("/usr/bin/apt-get install") + os.system("/etc/mlnx/mlnx-hw-management start") + self.syseeprom_export(); + return True diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700/onlp/builds/src/module/src/sysi.c b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700/onlp/builds/src/module/src/sysi.c index fd56b98a..a88312c0 100644 --- a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700/onlp/builds/src/module/src/sysi.c +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700/onlp/builds/src/module/src/sysi.c @@ -74,6 +74,12 @@ onlp_sysi_platform_set(const char* platform) mc_get_platform_info(mlnx_platform); return ONLP_STATUS_OK; } + if(!strcmp(platform, "x86-64-mlnx-msn2700b-r0")) { + __ONL_PLATFORM_NAME = "x86-64-mlnx_msn2700b-r0"; + mlnx_platform = get_platform_info(); + mc_get_platform_info(mlnx_platform); + return ONLP_STATUS_OK; + } if(!strcmp(platform, "x86-64-mlnx-msn2700-all")) { __ONL_PLATFORM_NAME = "x86-64-mlnx-msn2700-all"; return ONLP_STATUS_OK; diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/.gitignore b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/.gitignore new file mode 100644 index 00000000..3edba0a7 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/.gitignore @@ -0,0 +1,3 @@ +*x86-64*.mk +*x86_64*.mk +onlpdump.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/modules/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/modules/Makefile new file mode 100644 index 00000000..003238cf --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/modules/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk \ No newline at end of file diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/modules/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/modules/PKG.yml new file mode 100644 index 00000000..fa957d76 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/modules/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-msn2700b diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/PKG.yml new file mode 100644 index 00000000..74dce1d2 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=x86-64-mlnx-msn2700b ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/Makefile new file mode 100644 index 00000000..e7437cb2 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/Makefile @@ -0,0 +1,2 @@ +FILTER=src +include $(ONL)/make/subdirs.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/lib/Makefile new file mode 100644 index 00000000..b13e63b8 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/lib/Makefile @@ -0,0 +1,45 @@ +############################################################ +# +# +# 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. +# +# +############################################################ +# +# +############################################################ +include $(ONL)/make/config.amd64.mk + +MODULE := libonlp-x86-64-mlnx-msn2700b +include $(BUILDER)/standardinit.mk + +DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2700 onlplib +DEPENDMODULE_HEADERS := sff + +include $(BUILDER)/dependmodules.mk + +SHAREDLIB := libonlp-x86-64-mlnx-msn2700b.so +$(SHAREDLIB)_TARGETS := $(ALL_TARGETS) +include $(BUILDER)/so.mk +.DEFAULT_GOAL := $(SHAREDLIB) + +GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc +GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc +GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1 +GLOBAL_CFLAGS += -fPIC +GLOBAL_LINK_LIBS += -lpthread + +include $(BUILDER)/targets.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/onlpdump/Makefile new file mode 100644 index 00000000..dc4b9d4a --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/onlp/builds/onlpdump/Makefile @@ -0,0 +1,46 @@ +############################################################ +# +# +# 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. +# +# +############################################################ +# +# +# +############################################################ +include $(ONL)/make/config.amd64.mk + +.DEFAULT_GOAL := onlpdump + +MODULE := onlpdump +include $(BUILDER)/standardinit.mk + +DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2700 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_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc +GLOBAL_LINK_LIBS += -lpthread -lm + +include $(BUILDER)/targets.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/PKG.yml new file mode 100644 index 00000000..a2adc15a --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-msn2700b REVISION=r0 diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/src/lib/x86-64-mlnx-msn2700b-r0.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/src/lib/x86-64-mlnx-msn2700b-r0.yml new file mode 100755 index 00000000..e6017dad --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/src/lib/x86-64-mlnx-msn2700b-r0.yml @@ -0,0 +1,36 @@ +--- + +###################################################################### +# +# platform-config for Mellanox 2700B +# +###################################################################### + +x86-64-mlnx-msn2700b-r0: + + grub: + + serial: >- + --unit=0 + --speed=115200 + --word=8 + --parity=0 + --stop=1 + + kernel: + <<: *kernel-4-9 + + args: >- + nopat + console=ttyS0,115200n8 + rd_NO_MD + rd_NO_LUKS + acpi_enforce_resources=lax + acpi=noirq + i2c-ismt.enable=0 + + ##network + ## interfaces: + ## ma1: + ## name: ~ + ## syspath: pci0000:00/0000:00:14.0 diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/src/python/x86_64_mlnx_msn2700b_r0/__init__.py b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/src/python/x86_64_mlnx_msn2700b_r0/__init__.py new file mode 100644 index 00000000..9072382a --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2700b/platform-config/r0/src/python/x86_64_mlnx_msn2700b_r0/__init__.py @@ -0,0 +1,17 @@ +from onl.platform.base import * +from onl.platform.mellanox import * + +class OnlPlatform_x86_64_mlnx_msn2700b_r0(OnlPlatformMellanox, + OnlPlatformPortConfig_32x40): + PLATFORM='x86-64-mlnx-msn2700b-r0' + MODEL="MSN2700B" + SYS_OBJECT_ID=".2700.2" + + def baseconfig(self): + # load modules + import os + # necessary if there are issues with the install + # os.system("/usr/bin/apt-get install") + os.system("/etc/mlnx/mlnx-hw-management start") + self.syseeprom_export(); + return True diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740/onlp/builds/src/module/src/sysi.c b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740/onlp/builds/src/module/src/sysi.c index 3e806c26..3cc0106e 100755 --- a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740/onlp/builds/src/module/src/sysi.c +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740/onlp/builds/src/module/src/sysi.c @@ -74,6 +74,12 @@ onlp_sysi_platform_set(const char* platform) mc_get_platform_info(mlnx_platform); return ONLP_STATUS_OK; } + if(!strcmp(platform, "x86-64-mlnx-msn2740b-r0")) { + __ONL_PLATFORM_NAME = "x86-64-mlnx_msn2740b-r0"; + mlnx_platform = get_platform_info(); + mc_get_platform_info(mlnx_platform); + return ONLP_STATUS_OK; + } if(!strcmp(platform, "x86-64-mlnx-msn2740-all")) { __ONL_PLATFORM_NAME = "x86-64-mlnx-msn2740-all"; return ONLP_STATUS_OK; diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/.gitignore b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/.gitignore new file mode 100644 index 00000000..3edba0a7 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/.gitignore @@ -0,0 +1,3 @@ +*x86-64*.mk +*x86_64*.mk +onlpdump.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/modules/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/modules/Makefile new file mode 100644 index 00000000..003238cf --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/modules/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk \ No newline at end of file diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/modules/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/modules/PKG.yml new file mode 100644 index 00000000..8012ee45 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/modules/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/no-platform-modules.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-msn2740b diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/PKG.yml new file mode 100644 index 00000000..764e7a98 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=x86-64-mlnx-msn2740b ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/Makefile new file mode 100644 index 00000000..e7437cb2 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/Makefile @@ -0,0 +1,2 @@ +FILTER=src +include $(ONL)/make/subdirs.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/lib/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/lib/Makefile new file mode 100644 index 00000000..d6a375a8 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/lib/Makefile @@ -0,0 +1,45 @@ +############################################################ +# +# +# 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. +# +# +############################################################ +# +# +############################################################ +include $(ONL)/make/config.amd64.mk + +MODULE := libonlp-x86-64-mlnx-msn2740b +include $(BUILDER)/standardinit.mk + +DEPENDMODULES := AIM IOF mlnx_common x86_64_mlnx_msn2740 onlplib +DEPENDMODULE_HEADERS := sff + +include $(BUILDER)/dependmodules.mk + +SHAREDLIB := libonlp-x86-64-mlnx-msn2740b.so +$(SHAREDLIB)_TARGETS := $(ALL_TARGETS) +include $(BUILDER)/so.mk +.DEFAULT_GOAL := $(SHAREDLIB) + +GLOBAL_CFLAGS += -I$(onlp_BASEDIR)/module/inc +GLOBAL_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc +GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_MODULES_INIT=1 +GLOBAL_CFLAGS += -fPIC +GLOBAL_LINK_LIBS += -lpthread + +include $(BUILDER)/targets.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/onlpdump/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/onlpdump/Makefile new file mode 100644 index 00000000..0e6a4ff3 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/onlp/builds/onlpdump/Makefile @@ -0,0 +1,46 @@ +############################################################ +# +# +# 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. +# +# +############################################################ +# +# +# +############################################################ +include $(ONL)/make/config.amd64.mk + +.DEFAULT_GOAL := onlpdump + +MODULE := onlpdump +include $(BUILDER)/standardinit.mk + +DEPENDMODULES := AIM IOF onlp mlnx_common x86_64_mlnx_msn2740 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_CFLAGS += -I$(mlnx_common_BASEDIR)/module/inc +GLOBAL_LINK_LIBS += -lpthread -lm + +include $(BUILDER)/targets.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/Makefile b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/Makefile new file mode 100644 index 00000000..dc1e7b86 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/Makefile @@ -0,0 +1 @@ +include $(ONL)/make/pkg.mk diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/PKG.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/PKG.yml new file mode 100644 index 00000000..e406e2fa --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/PKG.yml @@ -0,0 +1 @@ +!include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=mellanox BASENAME=x86-64-mlnx-msn2740b REVISION=r0 diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/src/lib/x86-64-mlnx-msn2740b-r0.yml b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/src/lib/x86-64-mlnx-msn2740b-r0.yml new file mode 100755 index 00000000..5e926758 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/src/lib/x86-64-mlnx-msn2740b-r0.yml @@ -0,0 +1,36 @@ +--- + +###################################################################### +# +# platform-config for Mellanox 2740B +# +###################################################################### + +x86-64-mlnx-msn2740b-r0: + + grub: + + serial: >- + --unit=0 + --speed=115200 + --word=8 + --parity=0 + --stop=1 + + kernel: + <<: *kernel-4-9 + + args: >- + nopat + console=ttyS0,115200n8 + rd_NO_MD + rd_NO_LUKS + acpi_enforce_resources=lax + acpi=noirq + i2c-ismt.enable=0 + + ##network + ## interfaces: + ## ma1: + ## name: ~ + ## syspath: pci0000:00/0000:00:14.0 diff --git a/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/src/python/x86_64_mlnx_msn2740b_r0/__init__.py b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/src/python/x86_64_mlnx_msn2740b_r0/__init__.py new file mode 100644 index 00000000..d7480e04 --- /dev/null +++ b/packages/platforms/mellanox/x86-64/x86-64-mlnx-msn2740b/platform-config/r0/src/python/x86_64_mlnx_msn2740b_r0/__init__.py @@ -0,0 +1,17 @@ +from onl.platform.base import * +from onl.platform.mellanox import * + +class OnlPlatform_x86_64_mlnx_msn2740b_r0(OnlPlatformMellanox, + OnlPlatformPortConfig_32x40): + PLATFORM='x86-64-mlnx-msn2740b-r0' + MODEL="MSN2740B" + SYS_OBJECT_ID=".2740.2" + + def baseconfig(self): + # load modules + import os + # necessary if there are issues with the install + # os.system("/usr/bin/apt-get install") + os.system("/etc/mlnx/mlnx-hw-management start") + self.syseeprom_export(); + return True