├── make ├── .gitignore ├── config.amd64.mk ├── config.arm64.mk ├── config.mk └── mgmt.mk ├── tools ├── .gitignore ├── autobuild │ └── run.sh └── debug.sh ├── REPO ├── Makefile ├── buster │ ├── Makefile │ └── packages │ │ ├── binary-all │ │ └── Makefile │ │ ├── binary-amd64 │ │ └── Makefile │ │ ├── binary-arm64 │ │ └── Makefile │ │ ├── binary-armel │ │ └── Makefile │ │ └── binary-armhf │ │ └── Makefile ├── jessie │ ├── Makefile │ └── packages │ │ ├── binary-all │ │ └── Makefile │ │ └── binary-amd64 │ │ └── Makefile ├── stretch │ ├── Makefile │ └── packages │ │ ├── binary-all │ │ └── Makefile │ │ └── binary-amd64 │ │ └── Makefile └── .gitignore ├── packages ├── Makefile ├── base │ ├── any │ │ ├── tai │ │ │ ├── builds │ │ │ │ ├── .dockerignore │ │ │ │ ├── .gitignore │ │ │ │ ├── manifests │ │ │ │ │ ├── kustomization.yaml │ │ │ │ │ └── tai-service.yaml │ │ │ │ ├── Dockerfile │ │ │ │ ├── tai.service │ │ │ │ └── tai.sh │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── gnmi │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ └── gs-north-gnmi.service │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── snmp │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ └── gs-north-snmp.service │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── stern │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── Makefile │ │ │ └── APKG.yml │ │ ├── telemetry │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── gs-system-telemetry-yang.service │ │ │ │ ├── Makefile │ │ │ │ └── gs-system-telemetry.service │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── xlate-oc │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── gs-xlate-oc-yang.service │ │ │ │ └── gs-xlate-oc.service │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── xlate-or │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── gs-xlate-or-yang.service │ │ │ │ ├── Makefile │ │ │ │ └── gs-xlate-or.service │ │ │ ├── Makefile │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── mgmt │ │ │ ├── Makefile │ │ │ ├── libyang-python-before-remove.sh │ │ │ ├── sysrepo-python-before-remove.sh │ │ │ ├── gsyang-after-install.sh │ │ │ ├── gssouth-systemd-after-install.sh │ │ │ ├── builds │ │ │ │ ├── units │ │ │ │ │ ├── gs-mgmt-north.target │ │ │ │ │ ├── gs-mgmt-south.target │ │ │ │ │ ├── gs-mgmt-system.target │ │ │ │ │ ├── gs-mgmt-xlate.target │ │ │ │ │ ├── gs-mgmt.target │ │ │ │ │ ├── gs-yang.service │ │ │ │ │ ├── gs-south-dpll-yang.service │ │ │ │ │ ├── gs-south-onlp-yang.service │ │ │ │ │ ├── gs-south-tai-yang.service │ │ │ │ │ ├── gs-south-ocnos-yang.service │ │ │ │ │ ├── gs-south-sonic-yang.service │ │ │ │ │ ├── gs-south-gearbox-yang.service │ │ │ │ │ ├── gs-south-system-yang.service │ │ │ │ │ ├── gs-south-system.service │ │ │ │ │ ├── gs-north-notif.service │ │ │ │ │ ├── gs-south-onlp.service │ │ │ │ │ ├── gs-south-tai.service │ │ │ │ │ ├── gs-south-dpll.service │ │ │ │ │ ├── gs-south-ocnos.service │ │ │ │ │ ├── gs-south-sonic.service │ │ │ │ │ └── gs-south-gearbox.service │ │ │ │ └── manifests │ │ │ │ │ └── kustomization.yaml │ │ │ ├── gscli-before-remove.sh │ │ │ ├── gsyang-before-remove.sh │ │ │ ├── libyang-python-after-install.sh │ │ │ ├── sysrepo-python-after-install.sh │ │ │ ├── gssouth-systemd-before-remove.sh │ │ │ ├── gscli-after-install.sh │ │ │ ├── gsmgmt-after-install.sh │ │ │ └── gsmgmt-before-remove.sh │ │ ├── netopeer2 │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── gs-north-netconf-yang.service │ │ │ │ ├── gs-north-netconf.service │ │ │ │ ├── netopeer2.sh │ │ │ │ └── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── APKG.yml │ │ ├── python3.10 │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── APKG.yml │ │ │ └── builds │ │ │ │ └── Makefile │ │ ├── kernels │ │ │ ├── 4.19-lts │ │ │ │ ├── patches │ │ │ │ │ └── series │ │ │ │ ├── configs │ │ │ │ │ └── x86_64-all │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ └── Makefile │ │ │ │ └── kconfig.mk │ │ │ └── 5.4-lts │ │ │ │ ├── configs │ │ │ │ └── arm64-all │ │ │ │ │ └── .gitignore │ │ │ │ └── kconfig.mk │ │ ├── hw │ │ │ ├── builds │ │ │ │ └── Makefile │ │ │ ├── hw.c │ │ │ └── APKG.yml │ │ ├── piu │ │ │ ├── kbuilds │ │ │ │ ├── .gitignore │ │ │ │ ├── aco.h │ │ │ │ ├── Kbuild │ │ │ │ └── dco.h │ │ │ ├── APKG.yml │ │ │ └── include │ │ │ │ └── piu.h │ │ ├── sai │ │ │ └── bcm │ │ │ │ └── saibcm-kernel │ │ │ │ ├── kbuilds │ │ │ │ ├── Kbuild.x86_64 │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── linux-kernel-bde │ │ │ │ │ └── Makefile │ │ │ │ ├── linux-bcm-knet │ │ │ │ │ └── Makefile │ │ │ │ ├── linux-user-bde │ │ │ │ │ └── Makefile │ │ │ │ └── linux-knet-cb │ │ │ │ │ └── Makefile │ │ │ │ ├── 10-bcm-kmods.rules │ │ │ │ └── APKG.yml │ │ ├── k3s │ │ │ ├── builds │ │ │ │ ├── Makefile │ │ │ │ └── prep-k3s.service │ │ │ └── APKG.yml │ │ ├── sai-sanity │ │ │ ├── builds │ │ │ │ └── Makefile │ │ │ └── APKG.yml │ │ ├── fit │ │ │ └── loader │ │ │ │ ├── builds │ │ │ │ └── Makefile │ │ │ │ └── APKG.yml │ │ ├── templates │ │ │ ├── x1-docker.yml │ │ │ └── goldstone-platform-config.yml │ │ └── initrd │ │ │ └── loader │ │ │ └── APKG.yml │ ├── Makefile │ ├── all │ │ ├── Makefile │ │ ├── gs-config │ │ │ ├── builds │ │ │ │ ├── Makefile │ │ │ │ └── gs-config.service │ │ │ ├── Makefile │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── PKG.yml │ │ ├── sysconfig │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── initrd │ │ │ └── loader-files │ │ │ ├── src │ │ │ ├── python │ │ │ │ └── goldstone │ │ │ │ │ ├── __init__.py │ │ │ │ │ └── install │ │ │ │ │ └── __init__.py │ │ │ ├── usr │ │ │ │ └── bin │ │ │ │ │ └── goldstone-install │ │ │ ├── lib │ │ │ │ ├── customize.sh │ │ │ │ └── boot-custom │ │ │ └── bin │ │ │ │ └── autoboot │ │ │ ├── Makefile │ │ │ └── PKG.yml │ ├── amd64 │ │ ├── mgmt │ │ │ ├── builds │ │ │ │ ├── .dockerignore │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── templates │ │ │ │ │ ├── kustomization.yaml │ │ │ │ │ ├── south-tai.yaml │ │ │ │ │ ├── north-notif.yaml │ │ │ │ │ ├── south-ocnos.yaml │ │ │ │ │ ├── south-sonic.yaml │ │ │ │ │ └── south-onlp.yaml │ │ │ │ └── Dockerfile │ │ │ ├── Makefile │ │ │ ├── PKG.yml │ │ │ └── before-remove.sh │ │ ├── ocnos │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── ocnos.service │ │ │ │ └── ocnos.sh │ │ │ ├── Makefile │ │ │ ├── before-remove.sh │ │ │ └── PKG.yml │ │ ├── tai │ │ │ ├── builds │ │ │ │ ├── .dockerignore │ │ │ │ ├── .gitignore │ │ │ │ ├── manifests │ │ │ │ │ ├── kustomization.yaml │ │ │ │ │ ├── tai-service.yaml │ │ │ │ │ └── tai.yaml │ │ │ │ ├── Dockerfile │ │ │ │ ├── tai.service │ │ │ │ ├── tai.sh │ │ │ │ └── Makefile │ │ │ ├── Makefile │ │ │ ├── PKG.yml │ │ │ └── before-remove.sh │ │ ├── xcvrd │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── swss-common │ │ │ │ │ └── Makefile │ │ │ │ ├── patches │ │ │ │ │ ├── sonic-cfggen-and-sonic-platform │ │ │ │ │ │ └── series │ │ │ │ │ ├── sonic-platform-common │ │ │ │ │ │ └── series │ │ │ │ │ └── sonic-platform-daemons │ │ │ │ │ │ └── series │ │ │ │ ├── manifests │ │ │ │ │ ├── redis-service.yaml │ │ │ │ │ └── redis.yaml │ │ │ │ ├── xcvrd.service │ │ │ │ └── Makefile │ │ │ ├── Makefile │ │ │ ├── before-remove.sh │ │ │ └── PKG.yml │ │ ├── upgrade │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ ├── usonic │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ ├── bcmd │ │ │ │ │ ├── bcmd │ │ │ │ │ │ ├── __init__.py │ │ │ │ │ │ ├── .gitignore │ │ │ │ │ │ └── client.py │ │ │ │ │ ├── requirements.txt │ │ │ │ │ ├── proto │ │ │ │ │ │ └── bcmd │ │ │ │ │ │ │ └── bcmd.proto │ │ │ │ │ ├── setup.py │ │ │ │ │ └── Dockerfile │ │ │ │ ├── bcm.sh │ │ │ │ ├── load_usonic_config.sh │ │ │ │ ├── manifests │ │ │ │ │ ├── redis-service.yaml │ │ │ │ │ ├── config-db-json.yaml │ │ │ │ │ ├── sonic-version.yaml │ │ │ │ │ ├── start-script.yaml │ │ │ │ │ └── redis.yaml │ │ │ │ ├── load-usonic-config.service │ │ │ │ ├── usonic.service │ │ │ │ └── Makefile │ │ │ ├── Makefile │ │ │ ├── after-remove.sh │ │ │ ├── after-install.sh │ │ │ ├── before-remove.sh │ │ │ └── PKG.yml │ │ ├── Makefile │ │ ├── k3s │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── piu │ │ │ ├── Makefile │ │ │ └── piu-kernel-5.4-lts-x86_64-all │ │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ │ ├── Makefile │ │ │ │ └── PKG.yml │ │ ├── sai-sanity │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ ├── sai │ │ │ ├── Makefile │ │ │ └── bcm │ │ │ │ ├── Makefile │ │ │ │ ├── libsaibcm │ │ │ │ ├── Makefile │ │ │ │ └── PKG.yml │ │ │ │ ├── saibcm-kernel-3.16-lts-x86_64-all │ │ │ │ ├── builds │ │ │ │ │ ├── .gitignore │ │ │ │ │ └── Makefile │ │ │ │ ├── Makefile │ │ │ │ └── PKG.yml │ │ │ │ ├── saibcm-kernel-4.14-lts-x86_64-all │ │ │ │ ├── builds │ │ │ │ │ ├── .gitignore │ │ │ │ │ └── Makefile │ │ │ │ ├── Makefile │ │ │ │ └── PKG.yml │ │ │ │ ├── saibcm-kernel-4.9-lts-x86_64-all │ │ │ │ ├── builds │ │ │ │ │ ├── .gitignore │ │ │ │ │ └── Makefile │ │ │ │ ├── Makefile │ │ │ │ └── PKG.yml │ │ │ │ └── saibcm-kernel-5.4-lts-x86_64-all │ │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ │ ├── Makefile │ │ │ │ └── PKG.yml │ │ ├── gnmi │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── initrd │ │ │ ├── Makefile │ │ │ └── loader │ │ │ │ ├── Makefile │ │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ │ └── PKG.yml │ │ ├── kernels │ │ │ ├── Makefile │ │ │ └── kernel-4.19-lts-x86_64-all │ │ │ │ ├── Makefile │ │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ │ └── PKG.yml │ │ ├── snmp │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── stern │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── xlate-oc │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── xlate-or │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── netopeer2 │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── python3.10 │ │ │ ├── Makefile │ │ │ ├── PKG.yml │ │ │ └── builds │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ └── telemetry │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ │ └── PKG.yml │ └── arm64 │ │ ├── mgmt │ │ ├── builds │ │ │ ├── .dockerignore │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ └── templates │ │ │ │ ├── kustomization.yaml │ │ │ │ ├── south-tai.yaml │ │ │ │ ├── south-dpll.yaml │ │ │ │ ├── north-notif.yaml │ │ │ │ ├── south-gearbox.yaml │ │ │ │ └── south-onlp.yaml │ │ ├── Makefile │ │ └── PKG.yml │ │ ├── fit │ │ ├── Makefile │ │ └── loader │ │ │ ├── Makefile │ │ │ ├── PKG.yml │ │ │ └── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ ├── tai-dpll │ │ ├── builds │ │ │ ├── .gitignore │ │ │ ├── manifests │ │ │ │ ├── kustomization.yaml │ │ │ │ └── tai-service.yaml │ │ │ ├── Makefile │ │ │ ├── tai-dpll.service │ │ │ └── tai-dpll.sh │ │ ├── Makefile │ │ ├── before-remove.sh │ │ └── PKG.yml │ │ ├── Makefile │ │ ├── k3s │ │ ├── Makefile │ │ ├── PKG.yml │ │ └── builds │ │ │ └── Makefile │ │ ├── tai-gearbox │ │ ├── builds │ │ │ ├── .gitignore │ │ │ ├── manifests │ │ │ │ ├── kustomization.yaml │ │ │ │ └── tai-service.yaml │ │ │ ├── Makefile │ │ │ ├── tai-gearbox.service │ │ │ └── tai-gearbox.sh │ │ ├── Makefile │ │ ├── after-install.sh │ │ └── before-remove.sh │ │ ├── tai │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ ├── manifests │ │ │ │ ├── kustomization.yaml │ │ │ │ └── tai.yaml │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── gnmi │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── initrd │ │ ├── Makefile │ │ └── loader │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── kernels │ │ ├── Makefile │ │ └── kernel-5.4-lts-arm64-all │ │ │ ├── Makefile │ │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ │ └── PKG.yml │ │ ├── snmp │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── stern │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── xlate-oc │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── xlate-or │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── netopeer2 │ │ ├── Makefile │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── python3.10 │ │ ├── Makefile │ │ ├── PKG.yml │ │ └── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── telemetry │ │ ├── Makefile │ │ ├── builds │ │ ├── .gitignore │ │ └── Makefile │ │ └── PKG.yml └── platforms │ ├── Makefile │ ├── vs │ ├── Makefile │ ├── goldstone-platform-config │ │ ├── builds │ │ │ ├── Makefile │ │ │ ├── lanemap.conf │ │ │ ├── port_config.ini │ │ │ ├── sai.profile │ │ │ └── init.sh │ │ ├── Makefile │ │ └── PKG.yml │ └── goldstone-module │ │ ├── Makefile │ │ └── PKG.yml │ ├── accton │ ├── Makefile │ └── x86-64 │ │ ├── Makefile │ │ ├── as7716-32x │ │ ├── Makefile │ │ ├── goldstone-platform-config │ │ │ ├── builds │ │ │ │ ├── Makefile │ │ │ │ ├── usonic │ │ │ │ │ ├── sai.profile │ │ │ │ │ └── port_config.ini.j2 │ │ │ │ ├── init.sh │ │ │ │ └── tai │ │ │ │ │ └── mux │ │ │ │ │ └── exec.py │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── goldstone-module │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ ├── as7316-26xb │ │ ├── Makefile │ │ ├── goldstone-platform-config │ │ │ ├── builds │ │ │ │ ├── Makefile │ │ │ │ └── init.sh │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── goldstone-module │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ ├── as7716-24sc │ │ ├── Makefile │ │ ├── goldstone-platform-config │ │ │ ├── builds │ │ │ │ ├── Makefile │ │ │ │ ├── usonic │ │ │ │ │ ├── sai.profile │ │ │ │ │ └── port_config.ini.j2 │ │ │ │ ├── blacklist.conf │ │ │ │ ├── init.sh │ │ │ │ └── tai │ │ │ │ │ └── nel │ │ │ │ │ └── config.json │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── goldstone-module │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ ├── as7716-24xc │ │ ├── Makefile │ │ ├── goldstone-platform-config │ │ │ ├── builds │ │ │ │ ├── Makefile │ │ │ │ ├── usonic │ │ │ │ │ ├── sai.profile │ │ │ │ │ └── port_config.ini.j2 │ │ │ │ ├── blacklist.conf │ │ │ │ ├── init.sh │ │ │ │ └── tai │ │ │ │ │ └── nel │ │ │ │ │ └── config.json │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── goldstone-module │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── as7946-30xb │ │ ├── Makefile │ │ ├── goldstone-platform-config │ │ ├── builds │ │ │ ├── Makefile │ │ │ ├── xcvrd │ │ │ │ └── port_config.ini │ │ │ └── init.sh │ │ ├── Makefile │ │ └── PKG.yml │ │ └── goldstone-module │ │ ├── Makefile │ │ └── PKG.yml │ └── wistron │ ├── Makefile │ ├── arm64 │ ├── Makefile │ └── wtp-01-c1-00 │ │ ├── Makefile │ │ ├── modules │ │ ├── Makefile │ │ ├── builds │ │ │ └── Kbuild │ │ └── PKG.yml │ │ ├── onlp │ │ ├── Makefile │ │ ├── builds │ │ │ ├── Makefile │ │ │ ├── onlpdump │ │ │ │ ├── .gitignore │ │ │ │ └── Makefile │ │ │ ├── arm64_wistron_wtp_01_c1_00 │ │ │ │ ├── .module │ │ │ │ ├── module │ │ │ │ │ ├── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── make.mk │ │ │ │ │ │ ├── arm64_wistron_wtp_01_c1_00_enums.c │ │ │ │ │ │ ├── arm64_wistron_wtp_01_c1_00_log.h │ │ │ │ │ │ ├── arm64_wistron_wtp_01_c1_00_int.h │ │ │ │ │ │ └── arm64_wistron_wtp_01_c1_00_log.c │ │ │ │ │ ├── auto │ │ │ │ │ │ └── make.mk │ │ │ │ │ ├── make.mk │ │ │ │ │ └── inc │ │ │ │ │ │ └── arm64_wistron_wtp_01_c1_00 │ │ │ │ │ │ └── arm64_wistron_wtp_01_c1_00.x │ │ │ │ └── Makefile │ │ │ └── lib │ │ │ │ ├── Makefile │ │ │ │ └── libonlp-arm64-wistron-wtp-01-c1-00.mk │ │ └── PKG.yml │ │ ├── goldstone-platform-config │ │ ├── builds │ │ │ ├── blacklist.conf │ │ │ ├── Makefile │ │ │ ├── tai │ │ │ │ └── mux │ │ │ │ │ └── cfp2dco.json │ │ │ ├── tai-gearbox │ │ │ │ └── mdx1 │ │ │ │ │ └── config.json │ │ │ ├── 30.eeprom │ │ │ └── init.sh │ │ └── Makefile │ │ ├── platform-config │ │ ├── Makefile │ │ └── r0 │ │ │ ├── Makefile │ │ │ └── PKG.yml │ │ └── goldstone-module │ │ ├── Makefile │ │ ├── builds │ │ ├── Makefile │ │ ├── cfp2 │ │ │ ├── Kbuild │ │ │ └── Makefile │ │ └── dpll │ │ │ └── Kbuild │ │ └── PKG.yml │ ├── x86-64 │ ├── Makefile │ ├── modules │ │ ├── Makefile │ │ └── PKG.yml │ └── wtp-01-02-00 │ │ ├── Makefile │ │ ├── modules │ │ ├── builds │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ ├── Makefile │ │ └── PKG.yml │ │ ├── onlp │ │ ├── Makefile │ │ ├── builds │ │ │ ├── Makefile │ │ │ ├── x86_64_wistron_wtp_01_02_00 │ │ │ │ ├── .module │ │ │ │ ├── README │ │ │ │ ├── module │ │ │ │ │ ├── src │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── make.mk │ │ │ │ │ │ ├── x86_64_wistron_wtp_01_02_00_log.h │ │ │ │ │ │ ├── x86_64_wistron_wtp_01_02_00_int.h │ │ │ │ │ │ └── x86_64_wistron_wtp_01_02_00_enums.c │ │ │ │ │ ├── auto │ │ │ │ │ │ └── make.mk │ │ │ │ │ ├── make.mk │ │ │ │ │ └── inc │ │ │ │ │ │ └── x86_64_wistron_wtp_01_02_00 │ │ │ │ │ │ └── x86_64_wistron_wtp_01_02_00.x │ │ │ │ └── Makefile │ │ │ ├── onlpdump │ │ │ │ └── Makefile │ │ │ └── lib │ │ │ │ └── Makefile │ │ └── PKG.yml │ │ ├── goldstone-platform-config │ │ ├── builds │ │ │ ├── blacklist.conf │ │ │ ├── diag │ │ │ │ ├── galileo │ │ │ │ │ ├── __init__.py │ │ │ │ │ ├── base.py │ │ │ │ │ └── main.py │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── requirements.txt │ │ │ │ └── setup.py │ │ │ ├── Makefile │ │ │ ├── usonic │ │ │ │ ├── sai.profile │ │ │ │ └── port_config.ini.j2 │ │ │ ├── init.sh │ │ │ └── tai │ │ │ │ └── nel │ │ │ │ └── config.json │ │ ├── Makefile │ │ ├── before-remove.sh │ │ └── after-install.sh │ │ ├── platform-config │ │ ├── Makefile │ │ └── r0 │ │ │ ├── Makefile │ │ │ ├── PKG.yml │ │ │ └── src │ │ │ └── lib │ │ │ └── x86-64-wistron-wtp-01-02-00-r0.yml │ │ └── goldstone-module │ │ ├── Makefile │ │ └── PKG.yml │ └── vendor-config │ ├── Makefile │ └── PKG.yml ├── .gitignore ├── .github └── workflows │ └── ci.yml └── .gitmodules /make/.gitignore: -------------------------------------------------------------------------------- 1 | versions 2 | -------------------------------------------------------------------------------- /tools/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /REPO/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/subdirs.mk 2 | -------------------------------------------------------------------------------- /packages/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /packages/base/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/all/gs-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/any/snmp/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/any/stern/builds/.gitignore: -------------------------------------------------------------------------------- 1 | stern 2 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/.dockerignore: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /REPO/buster/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo-suite.mk 2 | -------------------------------------------------------------------------------- /REPO/jessie/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo-suite.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/upgrade/builds/.gitignore: -------------------------------------------------------------------------------- 1 | files 2 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/bcmd/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/arm64/fit/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/platforms/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /REPO/stretch/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo-suite.mk 2 | -------------------------------------------------------------------------------- /packages/base/all/gs-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/amd64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/k3s/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/k3s/builds/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/piu/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai-sanity/builds/.gitignore: -------------------------------------------------------------------------------- 1 | sai-sanity 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | lib 3 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/snmp/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/stern/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/tai/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/k3s/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | -------------------------------------------------------------------------------- /packages/base/arm64/tai/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/tai/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | lib 3 | -------------------------------------------------------------------------------- /packages/platforms/vs/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /REPO/.gitignore: -------------------------------------------------------------------------------- 1 | extracts 2 | *.deb 3 | Packages 4 | Packages.gz 5 | -------------------------------------------------------------------------------- /packages/base/all/sysconfig/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/gnmi/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/gnmi/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/amd64/initrd/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/kernels/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/snmp/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/snmp/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/amd64/stern/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/upgrade/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-oc/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-or/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/python3.10/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/fit/loader/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/arm64/gnmi/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/gnmi/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/arm64/initrd/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/kernels/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/snmp/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/snmp/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/arm64/stern/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-oc/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-or/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /REPO/buster/packages/binary-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/jessie/packages/binary-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/stretch/packages/binary-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/src/python/goldstone/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/base/amd64/initrd/loader/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/netopeer2/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/python3.10/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai-sanity/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/telemetry/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/telemetry/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-oc/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-or/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/arm64/initrd/loader/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/netopeer2/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/python3.10/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/telemetry/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/arm64/telemetry/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-oc/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-or/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | manifests 3 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /REPO/buster/packages/binary-amd64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/buster/packages/binary-arm64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/buster/packages/binary-armel/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/buster/packages/binary-armhf/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/jessie/packages/binary-amd64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /REPO/stretch/packages/binary-amd64/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/repo.mk 2 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/src/python/goldstone/install/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/libsaibcm/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/stern/builds/.gitignore: -------------------------------------------------------------------------------- 1 | stern 2 | LICENSE 3 | *.tar.gz 4 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | scripts 3 | yang 4 | -------------------------------------------------------------------------------- /packages/base/arm64/stern/builds/.gitignore: -------------------------------------------------------------------------------- 1 | stern 2 | LICENSE 3 | *.tar.gz 4 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/vendor-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/modules/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/amd64/piu/piu-kernel-5.4-lts-x86_64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/modules/builds/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /packages/base/amd64/initrd/loader/builds/.gitignore: -------------------------------------------------------------------------------- 1 | manifest.json 2 | zerotouch.json 3 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-3.16-lts-x86_64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.14-lts-x86_64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.9-lts-x86_64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-5.4-lts-x86_64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /packages/base/arm64/initrd/loader/builds/.gitignore: -------------------------------------------------------------------------------- 1 | manifest.json 2 | zerotouch.json 3 | -------------------------------------------------------------------------------- /packages/base/arm64/kernels/kernel-5.4-lts-arm64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/modules/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /make/config.amd64.mk: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/config.amd64.mk 2 | include $(X1)/make/config.mk 3 | -------------------------------------------------------------------------------- /make/config.arm64.mk: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/config.arm64.mk 2 | include $(X1)/make/config.mk 3 | -------------------------------------------------------------------------------- /packages/base/amd64/gnmi/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/gnmi/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/k3s/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/k3s/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/mgmt/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/netopeer2/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | scripts 3 | yang 4 | manifests 5 | -------------------------------------------------------------------------------- /packages/base/amd64/piu/piu-kernel-5.4-lts-x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/snmp/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/snmp/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/requirements.txt: -------------------------------------------------------------------------------- 1 | parse 2 | grpclib 3 | protobuf 4 | -------------------------------------------------------------------------------- /packages/base/any/kernels/4.19-lts/patches/series: -------------------------------------------------------------------------------- 1 | ipi-qumran.patch 2 | onl-4.19.patch 3 | -------------------------------------------------------------------------------- /packages/base/arm64/gnmi/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/gnmi/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/k3s/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/k3s/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/mgmt/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/netopeer2/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | scripts 3 | yang 4 | manifests 5 | -------------------------------------------------------------------------------- /packages/base/arm64/snmp/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/snmp/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/builds/blacklist.conf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/modules/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/amd64/kernels/kernel-4.19-lts-x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/stern/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/stern/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/any/kernels/4.19-lts/configs/x86_64-all/.gitignore: -------------------------------------------------------------------------------- 1 | kernel-* 2 | linux-* 3 | lib 4 | -------------------------------------------------------------------------------- /packages/base/any/kernels/5.4-lts/configs/arm64-all/.gitignore: -------------------------------------------------------------------------------- 1 | kernel-* 2 | linux-* 3 | lib 4 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | *.deb 3 | *.whl 4 | *.yang 5 | manifests 6 | -------------------------------------------------------------------------------- /packages/base/arm64/stern/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/stern/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/blacklist.conf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/amd64/kernels/kernel-4.19-lts-x86_64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | kernel* 2 | linux* 3 | lib 4 | -------------------------------------------------------------------------------- /packages/base/amd64/netopeer2/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/netopeer2/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-3.16-lts-x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.14-lts-x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.9-lts-x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-5.4-lts-x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/telemetry/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/telemetry/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/bcmd/.gitignore: -------------------------------------------------------------------------------- 1 | bcmd_grpc.py 2 | bcmd_pb2.py 3 | __pycache__ 4 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-oc/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/xlate-oc/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-or/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/xlate-or/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/kernels/kernel-5.4-lts-arm64-all/builds/.gitignore: -------------------------------------------------------------------------------- 1 | kernel* 2 | linux* 3 | lib 4 | -------------------------------------------------------------------------------- /packages/base/arm64/netopeer2/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/netopeer2/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/telemetry/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/telemetry/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-oc/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/xlate-oc/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-or/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/xlate-or/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/platform-config/r0/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-module/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/platform-config/r0/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk -------------------------------------------------------------------------------- /packages/base/amd64/python3.10/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/python3.10/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/python3.10/builds/.gitignore: -------------------------------------------------------------------------------- 1 | libpython3.10.so.1.0 2 | pip 3 | python 4 | python3.10 5 | -------------------------------------------------------------------------------- /packages/base/amd64/sai-sanity/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/sai-sanity/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/after-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | rm -rf /var/lib/usonic 6 | -------------------------------------------------------------------------------- /packages/base/arm64/fit/loader/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/fit/loader/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/python3.10/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/python3.10/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/base/arm64/python3.10/builds/.gitignore: -------------------------------------------------------------------------------- 1 | libpython3.10.so.1.0 2 | pip 3 | python 4 | python3.10 5 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/galileo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/base/amd64/initrd/loader/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/initrd/loader/APKG.yml ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/any/hw/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | $(CROSS_COMPILER)gcc -o x1-hw $(X1)/packages/base/any/hw/hw.c 3 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/manifests/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - tai.yaml 3 | - tai-service.yaml 4 | -------------------------------------------------------------------------------- /packages/base/arm64/initrd/loader/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/initrd/loader/APKG.yml ARCH=arm64 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/Makefile: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/pkg.mk 2 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/manifests/kustomization.yaml: -------------------------------------------------------------------------------- 1 | bases: 2 | - base 3 | 4 | patches: 5 | - tai.yaml 6 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable usonic.service 6 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/builds/manifests/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - tai.yaml 3 | - tai-service.yaml 4 | -------------------------------------------------------------------------------- /packages/base/arm64/tai/builds/manifests/kustomization.yaml: -------------------------------------------------------------------------------- 1 | bases: 2 | - base 3 | 4 | patches: 5 | - tai.yaml 6 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | # nothing to do 3 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/Makefile: -------------------------------------------------------------------------------- 1 | FILTER=src 2 | include $(ONL)/make/subdirs.mk 3 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | $(MAKE) -C diag 3 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/Makefile: -------------------------------------------------------------------------------- 1 | FILTER=src 2 | include $(ONL)/make/subdirs.mk 3 | -------------------------------------------------------------------------------- /packages/base/all/gs-config/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-config.service 6 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/.gitignore: -------------------------------------------------------------------------------- 1 | *.tar 2 | *.deb 3 | *.whl 4 | *.yang 5 | manifests 6 | yang 7 | gs-yang.py 8 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-north-gnmi.service 6 | -------------------------------------------------------------------------------- /packages/base/any/python3.10/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | python -m pip install --upgrade pip 6 | -------------------------------------------------------------------------------- /packages/base/any/snmp/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-north-snmp.service 6 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-xlate-oc.service 6 | -------------------------------------------------------------------------------- /packages/base/arm64/fit/loader/builds/.gitignore: -------------------------------------------------------------------------------- 1 | kernel-* 2 | *.itb 3 | *.its 4 | loader-initrd-arm64 5 | manifest.json 6 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/builds/manifests/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - tai.yaml 3 | - tai-service.yaml 4 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/onlpdump/.gitignore: -------------------------------------------------------------------------------- 1 | BUILD 2 | dependmodules.x 3 | onlps.mk 4 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/tai/APKG.yml ARCH=amd64 DEFAULT_LIBTAI=libtai-mux.so.0.7.0 2 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable tai-gearbox.service 6 | -------------------------------------------------------------------------------- /packages/base/arm64/tai/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/tai/APKG.yml ARCH=arm64 DEFAULT_LIBTAI=libtai-mux.so.0.7.0 2 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/libyang-python-before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | python -m pip uninstall --yes libyang 6 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/sysrepo-python-before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | python -m pip uninstall --yes sysrepo 6 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/.module: -------------------------------------------------------------------------------- 1 | name: arm64_wistron_wtp_01_c1_00 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/vendor-config/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/platform-config-vendor.yml VENDOR=wistron Vendor=Wistron 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/modules/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/no-arch-vendor-modules.yml ARCH=amd64 VENDOR=wistron 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | dist 3 | *.egg-info 4 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/.module: -------------------------------------------------------------------------------- 1 | name: x86_64_wistron_wtp_01_02_00 2 | -------------------------------------------------------------------------------- /packages/base/amd64/gnmi/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/gnmi/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/mgmt/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/snmp/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/snmp/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/stern/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/stern/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/any/piu/kbuilds/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | *.ko 3 | *.o 4 | *.mod.* 5 | *.cmd 6 | *.mod 7 | Module.symvers 8 | modules.order 9 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/Kbuild.x86_64: -------------------------------------------------------------------------------- 1 | ccflags-y += -DPTRS_ARE_64BITS -DLONGS_ARE_64BITS -DUSE_LINUX_BDE_MMAP=1 2 | -------------------------------------------------------------------------------- /packages/base/arm64/gnmi/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/gnmi/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/mgmt/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/snmp/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/snmp/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/stern/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/stern/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable ocnos.service 6 | ocnos.sh stop || true 7 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable xcvrd.service 6 | xcvrd.sh stop || true 7 | -------------------------------------------------------------------------------- /packages/base/any/tai/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable tai.service 6 | ldconfig -n /var/lib/tai/lib 7 | -------------------------------------------------------------------------------- /packages/base/any/tai/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable tai.service 6 | systemctl stop tai.service 7 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/builds/usonic/sai.profile: -------------------------------------------------------------------------------- 1 | SAI_INIT_CONFIG_FILE=/etc/sonic/config.bcm 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/builds/usonic/sai.profile: -------------------------------------------------------------------------------- 1 | SAI_INIT_CONFIG_FILE=/etc/sonic/config.bcm 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/builds/usonic/sai.profile: -------------------------------------------------------------------------------- 1 | SAI_INIT_CONFIG_FILE=/etc/sonic/config.bcm 2 | -------------------------------------------------------------------------------- /packages/base/amd64/netopeer2/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/netopeer2/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/python3.10/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/python3.10/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/sai-sanity/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/sai-sanity/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/telemetry/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/telemetry/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable usonic.service 6 | usonic.sh stop || true 7 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-oc/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/xlate-oc/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/amd64/xlate-or/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/xlate-or/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gsyang-after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | groupadd -f gsmgmt 6 | 7 | systemctl enable gs-yang.service 8 | -------------------------------------------------------------------------------- /packages/base/arm64/fit/loader/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/fit/loader/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/netopeer2/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/netopeer2/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/python3.10/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/python3.10/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/telemetry/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/telemetry/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-oc/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/xlate-oc/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/xlate-or/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/xlate-or/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/builds/blacklist.conf: -------------------------------------------------------------------------------- 1 | blacklist x86_64_accton_as7716_24sc_expansion_card 2 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/builds/blacklist.conf: -------------------------------------------------------------------------------- 1 | blacklist x86_64_accton_as7716_24xc_expansion_card 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/before-remove.sh: -------------------------------------------------------------------------------- 1 | set -eux 2 | 3 | python -m pip uninstall -y galileo 4 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/usonic/sai.profile: -------------------------------------------------------------------------------- 1 | SAI_INIT_CONFIG_FILE=/etc/sonic/config.bcm 2 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | kubectl delete -f /var/lib/rancher/k3s/server/manifests/mgmt/ || true 6 | -------------------------------------------------------------------------------- /packages/base/amd64/piu/piu-kernel-5.4-lts-x86_64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/piu/APKG.yml KERNEL=kernel-5.4-lts-x86-64-all ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | kubectl delete -f /var/lib/rancher/k3s/server/manifests/tai/ || true 6 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcm.sh: -------------------------------------------------------------------------------- 1 | alias bcmsh='k exec -it deploy/usonic-core -c syncd -- socat unix-connect:/run/sswsyncd/sswsyncd.socket -' 2 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | *.ko 3 | *.o 4 | *.mod.* 5 | *.cmd 6 | *.mod 7 | Module.symvers 8 | modules.order 9 | -------------------------------------------------------------------------------- /packages/base/amd64/initrd/loader/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | include $(X1)/packages/base/any/initrd/loader/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | rm -rf /dev/shm/* 6 | 7 | systemctl enable gs-north-netconf.service 8 | -------------------------------------------------------------------------------- /packages/base/arm64/initrd/loader/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.arm64.mk 2 | include $(X1)/packages/base/any/initrd/loader/builds/Makefile 3 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable tai-dpll.service 6 | systemctl stop tai-dpll.service 7 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-north-gnmi.service 6 | systemctl stop gs-north-gnmi.service 7 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gssouth-systemd-after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | cd /var/lib/goldstone/wheels/system && python -m pip install *.whl 6 | -------------------------------------------------------------------------------- /packages/base/any/snmp/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-north-snmp.service 6 | systemctl stop gs-north-snmp.service 7 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-system-telemetry-yang.service gs-system-telemetry.service 6 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-xlate-oc.service 6 | systemctl stop gs-xlate-oc.service 7 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-xlate-or.service 6 | systemctl stop gs-xlate-or.service 7 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-mgmt-north.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management North Daemons 3 | 4 | [Install] 5 | WantedBy=gs-mgmt.target 6 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-mgmt-south.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South Daemons 3 | 4 | [Install] 5 | WantedBy=gs-mgmt.target 6 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-mgmt-system.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management System Daemons 3 | 4 | [Install] 5 | WantedBy=gs-mgmt.target 6 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable tai-gearbox.service 6 | systemctl stop tai-gearbox.service 7 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/builds/lanemap.conf: -------------------------------------------------------------------------------- 1 | vEthernet1:1,2,3,4 2 | vEthernet2:5,6,7,8 3 | vEthernet3:9,10,11,12 4 | vEthernet4:13,14,15,16 5 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-mgmt-xlate.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Translate Daemons 3 | 4 | [Install] 5 | WantedBy=gs-mgmt.target 6 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gscli-before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | python -m pip uninstall --yes gscli 6 | python -m pip uninstall --yes goldstone-lib 7 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/Makefile: -------------------------------------------------------------------------------- 1 | DIRECTORIES := linux-kernel-bde linux-user-bde linux-bcm-knet linux-knet-cb 2 | include $(ONL)/make/subdirs.mk 3 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/linux-kernel-bde/Makefile: -------------------------------------------------------------------------------- 1 | export MODULE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | include ../common.mk 3 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/galileo/base.py: -------------------------------------------------------------------------------- 1 | import click 2 | 3 | @click.group() 4 | def cli(): 5 | pass 6 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.9-lts-x86_64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/sai/bcm/saibcm-kernel/APKG.yml KERNEL=kernel-4.9-lts-x86-64-all ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-5.4-lts-x86_64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/sai/bcm/saibcm-kernel/APKG.yml KERNEL=kernel-5.4-lts-x86-64-all ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-3.16-lts-x86_64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/sai/bcm/saibcm-kernel/APKG.yml KERNEL=kernel-3.16-lts-x86-64-all ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.14-lts-x86_64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $X1/packages/base/any/sai/bcm/saibcm-kernel/APKG.yml KERNEL=kernel-4.14-lts-x86-64-all ARCH=amd64 2 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gsyang-before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-yang.service 6 | systemctl stop gs-yang.service 7 | 8 | groupdel gsmgmt 9 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/libyang-python-after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | cd /var/lib/goldstone/wheels/libyang && python -m pip install --only-binary :all: *.whl 6 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/sysrepo-python-after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | cd /var/lib/goldstone/wheels/sysrepo && python -m pip install --only-binary :all: *.whl 6 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=arm64-wistron-wtp-01-c1-00 ARCH=arm64 TOOLCHAIN=aarch64-linux-gnu 2 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gssouth-systemd-before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-south-system.service 6 | 7 | python -m pip uninstall --yes gssystem 8 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/onlpdump/Makefile: -------------------------------------------------------------------------------- 1 | PLATFORM := arm64-wistron-wtp-01-c1-00 2 | include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk 3 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/onlp-platform-any.yml PLATFORM=x86-64-wistron-wtp-01-02-00 ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/onlpdump/Makefile: -------------------------------------------------------------------------------- 1 | PLATFORM := x86-64-wistron-wtp-01-02-00 2 | include $(ONL)/packages/base/any/onlp/builds/platform/onlps.mk 3 | -------------------------------------------------------------------------------- /packages/base/all/gs-config/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-config.service 6 | rm -f /var/lib/goldstone/device/current /etc/goldstone/platform 7 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/builds/port_config.ini: -------------------------------------------------------------------------------- 1 | # name lanes 2 | Ethernet1 1,2,3,4 3 | Ethernet2 5,6,7,8 4 | Ethernet3 9,10,11,12 5 | Ethernet4 13,14,15,16 6 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-module/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | $(RM) -r lib 3 | $(MAKE) -C cfp2 4 | cp -r cfp2/lib . 5 | $(MAKE) -C dpll 6 | cp -r dpll/lib . 7 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/lib/Makefile: -------------------------------------------------------------------------------- 1 | PLATFORM := arm64-wistron-wtp-01-c1-00 2 | include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk 3 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/lib/Makefile: -------------------------------------------------------------------------------- 1 | PLATFORM := x86-64-wistron-wtp-01-02-00 2 | include $(ONL)/packages/base/any/onlp/builds/platform/libonlp-platform.mk 3 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/src/usr/bin/goldstone-install: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | """Install Goldstone 4 | """ 5 | 6 | import goldstone.install.App 7 | goldstone.install.App.main() 8 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-mgmt.target: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Daemons 3 | Before=systemd-user-sessions.service 4 | 5 | [Install] 6 | WantedBy=multi-user.target 7 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-north-netconf.service 6 | netopeer2.sh stop || true 7 | 8 | /usr/bin/netopeer2.sh remove 9 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | cd /var/lib/galileo/wheels && python -m pip install --no-deps *.whl 6 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | python3 setup.py bdist_wheel 3 | python3 -m pip wheel -r requirements.txt -w dist 4 | 5 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/platform-config/r0/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/platform-config-platform.yml ARCH=arm64 VENDOR=wistron BASENAME=arm64-wistron-wtp-01-c1-00 REVISION=r0 2 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/platform-config/r0/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/platform-config-platform.yml ARCH=amd64 VENDOR=wistron BASENAME=x86-64-wistron-wtp-01-02-00 REVISION=r0 2 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gscli-after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | cd /var/lib/goldstone/wheels/cli && python -m pip install *.whl 6 | cd /var/lib/goldstone/wheels/lib && python -m pip install *.whl 7 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/builds/sai.profile: -------------------------------------------------------------------------------- 1 | SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 2 | SAI_VS_HOSTIF_USE_TAP_DEVICE=true 3 | SAI_VS_INTERFACE_LANE_MAP_FILE=/etc/sonic/lanemap.conf 4 | -------------------------------------------------------------------------------- /packages/base/amd64/k3s/builds/Makefile: -------------------------------------------------------------------------------- 1 | K3S_DIGEST := 04443fbf9e01ff9c3ad5b1dec8cac0df5885e5aac7e3b79196e35a9023e92e25 2 | 3 | include $(X1)/make/config.amd64.mk 4 | include $(X1)/packages/base/any/k3s/builds/Makefile 5 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/templates/kustomization.yaml: -------------------------------------------------------------------------------- 1 | bases: 2 | - base 3 | 4 | patches: 5 | - north-notif.yaml 6 | - south-onlp.yaml 7 | - south-sonic.yaml 8 | - south-tai.yaml 9 | - south-ocnos.yaml 10 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/swss-common/Makefile: -------------------------------------------------------------------------------- 1 | SWSS_COMMON_DIR := ../src/sonic-swss-common 2 | 3 | all: 4 | cd $(SWSS_COMMON_DIR) && dpkg-buildpackage -us -uc -b && cd ../ && dpkg -i *.deb && cp *.deb /tmp/ 5 | -------------------------------------------------------------------------------- /packages/base/arm64/k3s/builds/Makefile: -------------------------------------------------------------------------------- 1 | K3S_DIGEST := 45677b6b9148737b517f3ab24b0c51510b9b2de1a7bd4d99374bc6053e15b7ac 2 | 3 | include $(X1)/make/config.arm64.mk 4 | include $(X1)/packages/base/any/k3s/builds/Makefile 5 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/templates/kustomization.yaml: -------------------------------------------------------------------------------- 1 | bases: 2 | - base 3 | 4 | patches: 5 | - north-notif.yaml 6 | - south-onlp.yaml 7 | - south-gearbox.yaml 8 | - south-dpll.yaml 9 | - south-tai.yaml 10 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/requirements.txt: -------------------------------------------------------------------------------- 1 | click==7.1.2 2 | click-shell==2.0 3 | smbus==1.1.post2 4 | ioctl@git+https://github.com/olavmrk/python-ioctl@master 5 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/modules/PKG.yml: -------------------------------------------------------------------------------- 1 | !include $ONL_TEMPLATES/platform-modules.yml VENDOR=wistron BASENAME=x86-64-wistron-wtp-01-02-00 ARCH=amd64 KERNELS="onl-kernel-5.4-lts-x86-64-all:amd64" 2 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/patches/sonic-cfggen-and-sonic-platform/series: -------------------------------------------------------------------------------- 1 | 0001-sonic-cfggen-Add-use-unix-sock-option.patch 2 | 0002-device-accton-Support-as7946-30xb.patch 3 | 0003-as7946-30xb-Use-onlp_shlock-API.patch 4 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gsmgmt-after-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-mgmt.target gs-mgmt-south.target gs-mgmt-north.target gs-mgmt-xlate.target gs-mgmt-system.target gs-north-notif.service 6 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/manifests/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - north-notif.yaml 3 | - south-gearbox.yaml 4 | - south-dpll.yaml 5 | - south-onlp.yaml 6 | - south-sonic.yaml 7 | - south-tai.yaml 8 | - south-ocnos.yaml 9 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/load_usonic_config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | kubectl create configmap usonic-config --from-file="/var/lib/goldstone/device/current/usonic" --dry-run=client -o yaml | kubectl apply -f - 6 | -------------------------------------------------------------------------------- /packages/base/any/k3s/builds/Makefile: -------------------------------------------------------------------------------- 1 | all: k3s k3s-airgap-images-$(ARCH).tar.gz 2 | 3 | k3s: 4 | oras pull ghcr.io/oopt-goldstone/k3s:1.22.2@sha256:$(K3S_DIGEST) 5 | tar xvf k3s.tar 6 | 7 | k3s-airgap-images-$(ARCH).tar.gz: k3s 8 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-system-telemetry-yang.service gs-system-telemetry.service 6 | systemctl stop gs-system-telemetry-yang.service gs-system-telemetry.service 7 | -------------------------------------------------------------------------------- /tools/autobuild/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ############################################################ 3 | set -e 4 | 5 | PARENT_DIR="$(realpath $(dirname $BASH_SOURCE[0]))" 6 | cd $PARENT_DIR 7 | 8 | ./build.sh $@ 9 | ./install.sh $@ 10 | -------------------------------------------------------------------------------- /packages/base/any/hw/hw.c: -------------------------------------------------------------------------------- 1 | /** This is simply an example of building a local package into your NOS */ 2 | #include 3 | 4 | int 5 | main(int argc, char* argv[]) 6 | { 7 | printf("X1 Hello, World!\n"); 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/linux-bcm-knet/Makefile: -------------------------------------------------------------------------------- 1 | export MODULE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | export KBUILD_EXTRA_SYMBOLS := $(abspath ../linux-kernel-bde/Module.symvers) 3 | include ../common.mk 4 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/linux-user-bde/Makefile: -------------------------------------------------------------------------------- 1 | export MODULE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | export KBUILD_EXTRA_SYMBOLS := $(abspath ../linux-kernel-bde/Module.symvers) 3 | include ../common.mk 4 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/manifests/tai-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: taish-server 5 | spec: 6 | selector: 7 | app: tai 8 | ports: 9 | - protocol: TCP 10 | port: 50051 11 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/manifests/redis-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: redis 5 | spec: 6 | selector: 7 | app: redis 8 | ports: 9 | - protocol: TCP 10 | port: 6379 11 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/manifests/tai-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: taish-server 5 | spec: 6 | selector: 7 | app: tai 8 | ports: 9 | - protocol: TCP 10 | port: 50051 11 | -------------------------------------------------------------------------------- /make/config.mk: -------------------------------------------------------------------------------- 1 | include $(ONL)/make/config.mk 2 | # 3 | # Custom configuration here 4 | # 5 | ifndef SONIC 6 | export SONIC := $(X1)/sm/sonic-buildimage 7 | endif 8 | 9 | ifndef sonicadmin_user 10 | export sonicadmin_user := root 11 | endif 12 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/builds/manifests/tai-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: tai-dpll 5 | spec: 6 | selector: 7 | app: tai-dpll 8 | ports: 9 | - protocol: TCP 10 | port: 50051 11 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-south-onlp 6 | systemctl enable gs-south-tai 7 | systemctl enable gs-south-system 8 | systemctl enable gs-south-sonic 9 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/manifests/redis-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: redis-xcvrd 5 | spec: 6 | selector: 7 | app: redis-xcvrd 8 | ports: 9 | - protocol: TCP 10 | port: 6379 11 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl enable gs-south-onlp 6 | systemctl enable gs-south-tai 7 | systemctl enable gs-south-system 8 | systemctl enable gs-south-sonic 9 | -------------------------------------------------------------------------------- /packages/base/any/kernels/4.19-lts/kconfig.mk: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | K_MAJOR_VERSION := 4 3 | K_PATCH_LEVEL := 19 4 | K_SUB_LEVEL := 91 5 | K_SUFFIX := 6 | K_PATCH_DIR := $(THIS_DIR)/patches 7 | K_MODSYNCLIST := tools/objtool 8 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/builds/manifests/tai-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: tai-gearbox 5 | spec: 6 | selector: 7 | app: tai-gearbox 8 | ports: 9 | - protocol: TCP 10 | port: 50051 11 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | for index in $(seq 4); 3 | do 4 | ip link add vEthernet$index type veth peer name veth$index 5 | ip link set up dev vEthernet$index 6 | ip link set up dev veth$index 7 | done 8 | 9 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/modules/builds/Makefile: -------------------------------------------------------------------------------- 1 | KERNELS := onl-kernel-5.4-lts-x86-64-all:amd64 2 | KMODULES := $(wildcard *.c) 3 | VENDOR := wistron 4 | BASENAME := x86-64-wistron-wtp-01-02-00 5 | ARCH := x86_64 6 | include $(ONL)/make/kmodule.mk 7 | -------------------------------------------------------------------------------- /packages/base/all/gs-config/PKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-config 3 | arch: all 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone config file 7 | files: 8 | builds/80.gs-platform-baseconf: /etc/boot.d/ 9 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/builds/Makefile: -------------------------------------------------------------------------------- 1 | VERSION := 0.4.0 2 | 3 | LIBS := libtai-dpll.so.$(VERSION) 4 | 5 | all: $(LIBS) 6 | 7 | $(LIBS): 8 | oras pull ghcr.io/oopt-goldstone/libtai-dpll:0.4.0@sha256:a269786fcf5e95141867ebea697eaafac7aeb513975d2aed7ee2c6a9b729f2de 9 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/kbuilds/linux-knet-cb/Makefile: -------------------------------------------------------------------------------- 1 | export MODULE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | export KBUILD_EXTRA_SYMBOLS := $(abspath ../linux-kernel-bde/Module.symvers ../linux-bcm-knet/Module.symvers) 3 | include ../common.mk 4 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/10-bcm-kmods.rules: -------------------------------------------------------------------------------- 1 | ACTION=="add", ATTRS{vendor}=="0x14e4", ATTRS{device}=="0xb[0-9][0-9][0-9]", RUN+="/usr/bin/bcm-kmods" 2 | ACTION=="remove", ATTRS{vendor}=="0x14e4", ATTRS{device}=="0xb[0-9][0-9][0-9]", RUN+="/usr/bin/bcm-kmods remove" 3 | -------------------------------------------------------------------------------- /packages/base/any/stern/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: stern 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: stern 7 | depends: 8 | - k3s 9 | files: 10 | builds/stern: /usr/local/bin/stern 11 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:experimental 2 | ARG BASE 3 | 4 | FROM ${BASE} 5 | 6 | ARG TARGETARCH 7 | 8 | RUN if [ $TARGETARCH = amd64 ]; then apt update && DEBIAN_FRONTEND=noninteractive apt install -qy --no-install-recommends libi2c0; fi 9 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/builds/tai/mux/cfp2dco.json: -------------------------------------------------------------------------------- 1 | { 2 | "LDC040-DO" : "libtai-ldc.so", 3 | "LDC041-EO" : "libtai-ldc.so", 4 | "TRB100DAA-01" : "libtai-lumentum.so", 5 | "TRB200DAA-01" : "libtai-lumentum.so" 6 | } 7 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | PLATFORM: vs 3 | 4 | packages: 5 | - name: goldstone-module-$PLATFORM 6 | arch: all 7 | version: 1.0.0 8 | maintainer: goldstone-nos@googlegroups.com 9 | summary: Goldstone module for $PLATFORM 10 | -------------------------------------------------------------------------------- /packages/base/any/kernels/5.4-lts/kconfig.mk: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | K_MAJOR_VERSION := 5 3 | K_PATCH_LEVEL := 4 4 | K_SUB_LEVEL := 47 5 | K_SUFFIX := 6 | K_PATCH_DIR := $(THIS_DIR)/patches 7 | K_MODSYNCLIST := tools/objtool 8 | K_MODSYNCKEEP := scripts 9 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/builds/tai-gearbox/mdx1/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "module": { 3 | "attrs": { 4 | "firmware-location": "/var/lib/tai/mdx1_fw_app_revb.mem", 5 | "boot-mode": "cold" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/src/lib/customize.sh: -------------------------------------------------------------------------------- 1 | ONL_SYSTEM_NAME="Goldstone Network OS" 2 | ONL_SYSTEM_LOADER_NAME="Loader" 3 | LOADER_PROMPT="loader# " 4 | ONL_UDHCPC_VENDOR="GOLDSTONE" 5 | 6 | if [ -f /etc/goldstone/loader/versions.sh ]; then 7 | . /etc/goldstone/loader/versions.sh 8 | fi 9 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:experimental 2 | ARG BASE 3 | 4 | FROM ${BASE} 5 | 6 | RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ 7 | apt update && DEBIAN_FRONTEND=noninteractive apt install -qy --no-install-recommends libi2c0 8 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/templates/south-tai.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-tai 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: tai 10 | image: MGMT_IMAGE_REPO/south-tai:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:experimental 2 | ARG BASE 3 | 4 | FROM ${BASE} 5 | 6 | RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ 7 | apt update && DEBIAN_FRONTEND=noninteractive apt install -qy --no-install-recommends libi2c0 8 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/templates/south-tai.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-tai 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: tai 10 | image: MGMT_IMAGE_REPO/south-tai:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/README: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # wistron_wtp_01_02_00 README 4 | # 5 | ############################################################################### 6 | 7 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/templates/south-dpll.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-dpll 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: dpll 10 | image: MGMT_IMAGE_REPO/south-dpll:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/templates/north-notif.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: north-notif 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: notif 10 | image: MGMT_IMAGE_REPO/north-notif:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/templates/south-ocnos.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-ocnos 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: ocnos 10 | image: MGMT_IMAGE_REPO/south-ocnos:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/templates/south-sonic.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-sonic 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: sonic 10 | image: MGMT_IMAGE_REPO/south-sonic:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/any/piu/APKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: [ 'onl-$KERNEL:$ARCH' ] 3 | 4 | packages: 5 | - name: cfp2piu-$KERNEL 6 | summary: CFP2 PIU kernel module 7 | arch: $ARCH 8 | version: 0.1 9 | maintainer: goldstone-nos@googlegroups.com 10 | files: 11 | builds/lib: lib 12 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/templates/north-notif.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: north-notif 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: notif 10 | image: MGMT_IMAGE_REPO/north-notif:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/all/gs-config/builds/gs-config.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=setup Goldstone config file 3 | Before=network-online.target 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs_config.sh 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/templates/south-gearbox.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-gearbox 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: gearbox 10 | image: MGMT_IMAGE_REPO/south-gearbox:IMAGE_TAG 11 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=setup Goldstone YANG models 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStart=/usr/bin/gs-yang.py --install-platform 7 | RemainAfterExit=true 8 | StandardOutput=journal 9 | 10 | [Install] 11 | WantedBy=gs-mgmt-south.target gs-mgmt-north.target 12 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/proto/bcmd/bcmd.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package bcmd; 4 | 5 | service BCMD { 6 | rpc Exec(ExecRequest) returns (ExecResponse); 7 | } 8 | 9 | message ExecRequest { 10 | string command = 1; 11 | } 12 | 13 | message ExecResponse { 14 | string response = 1; 15 | } 16 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/builds/usonic/port_config.ini.j2: -------------------------------------------------------------------------------- 1 | # name lanes alias index speed 2 | {% for i in interfaces -%} 3 | {{ '%-15s' | format(i['name']) }} {{ '%-15s' | format(i['lanes']) }} {{ '%-15s' | format(i['alias']) }} {{ '%-5s' | format(i['index']) }} {{ i['speed'] }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/builds/usonic/port_config.ini.j2: -------------------------------------------------------------------------------- 1 | # name lanes alias index speed 2 | {% for i in interfaces -%} 3 | {{ '%-15s' | format(i['name']) }} {{ '%-15s' | format(i['lanes']) }} {{ '%-15s' | format(i['alias']) }} {{ '%-5s' | format(i['index']) }} {{ i['speed'] }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/builds/usonic/port_config.ini.j2: -------------------------------------------------------------------------------- 1 | # name lanes alias index speed 2 | {% for i in interfaces -%} 3 | {{ '%-15s' | format(i['name']) }} {{ '%-15s' | format(i['lanes']) }} {{ '%-15s' | format(i['alias']) }} {{ '%-5s' | format(i['index']) }} {{ i['speed'] }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/builds/30.eeprom: -------------------------------------------------------------------------------- 1 | REG=$(i2cget -y 2000000.i2c 0x38 0) 2 | 3 | if [ $(( REG & 0x0C )) = 0 ]; then 4 | echo 24c02 0x53 > /sys/devices/platform/soc/2000000.i2c/i2c-0/new_device 5 | else 6 | echo 24c64 0x53 > /sys/devices/platform/soc/2000000.i2c/i2c-0/new_device 7 | fi 8 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/usonic/port_config.ini.j2: -------------------------------------------------------------------------------- 1 | # name lanes alias index speed 2 | {% for i in interfaces -%} 3 | {{ '%-15s' | format(i['name']) }} {{ '%-15s' | format(i['lanes']) }} {{ '%-15s' | format(i['alias']) }} {{ '%-5s' | format(i['index']) }} {{ i['speed'] }} 4 | {% endfor %} 5 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/builds/tai/mux/exec.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import sys 4 | 5 | def main(): 6 | if len(sys.argv) != 2: 7 | sys.exit(1) 8 | 9 | arg = sys.argv[1] 10 | 11 | if arg == 'list': 12 | return 13 | 14 | if __name__ == '__main__': 15 | main() 16 | -------------------------------------------------------------------------------- /packages/base/any/hw/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: x1-hw 3 | arch: $ARCH 4 | version: 1.0.0 5 | copyright: Copyright 2018 Big Switch Networks 6 | maintainer: support@bigswitch.com 7 | changelog: Initial 8 | support: support@bigswitch.com 9 | summary: X1 Hello World 10 | files: 11 | builds/x1-hw : /usr/bin/ 12 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/gsmgmt-before-remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable gs-mgmt.target gs-mgmt-south.target gs-mgmt-north.target gs-mgmt-xlate.target gs-mgmt-system.target gs-north-notif.service 6 | systemctl stop gs-mgmt.target gs-mgmt-south.target gs-mgmt-north.target gs-mgmt-xlate.target gs-mgmt-system.target gs-north-notif.service 7 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/builds/gs-north-netconf-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management North NETCONF Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/netopeer2.sh install 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/stern/builds/Makefile: -------------------------------------------------------------------------------- 1 | STERN_VERSION = 1.20.0 2 | 3 | ifndef ARCH 4 | $(error $$ARCH not set) 5 | endif 6 | 7 | stern: 8 | wget -O tmp.tar.gz https://github.com/stern/stern/releases/download/v1.20.0/stern_$(STERN_VERSION)_linux_$(ARCH).tar.gz 9 | tar xf tmp.tar.gz --strip-components 1 10 | chmod +x $@ 11 | rm -rf LICENSE tmp.tar.gz 12 | -------------------------------------------------------------------------------- /packages/base/amd64/piu/piu-kernel-5.4-lts-x86_64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | ############################################################ 3 | export OUTPUT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 4 | export KERNEL := onl-kernel-5.4-lts-x86-64-all:amd64 5 | export ARCH := x86_64 6 | 7 | all: 8 | $(MAKE) -C $(X1)/packages/base/any/piu/kbuilds 9 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-dpll-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South DPLL Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-dpll 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-onlp-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South ONLP Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-onlp 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-tai-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South TAI Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-tai 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-ocnos-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South OcNOS Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-ocnos 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-sonic-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South SONiC Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-sonic 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/builds/gs-xlate-or-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Translate OpenROADM Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install xlate-or 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-gearbox-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South Gearbox Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-gearbox 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-system-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South System Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/bin/gs-yang.py --install south-system 8 | RemainAfterExit=true 9 | StandardOutput=journal 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-module/builds/cfp2/Kbuild: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | 3 | NAME ?= arm64-wistron-wtp-01-c1-00-cfp2 4 | 5 | SOURCES := main.c 6 | 7 | obj-m := $(NAME).o 8 | 9 | $(NAME)-y := $(SOURCES:.c=.o) 10 | 11 | ccflags-y := -I$(X1)/sm/linux-gft/drivers/net/ethernet 12 | 13 | # vim: ft=make 14 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-module/builds/dpll/Kbuild: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | 3 | NAME ?= arm64-wistron-wtp-01-c1-00-dpll 4 | 5 | SOURCES := main.c 6 | 7 | obj-m := $(NAME).o 8 | 9 | $(NAME)-y := $(SOURCES:.c=.o) 10 | 11 | ccflags-y := -I$(X1)/sm/linux-gft/drivers/net/ethernet 12 | 13 | # vim: ft=make 14 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/load-usonic-config.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=load uSONiC platform config 3 | After=k3s.service gs-config.service 4 | Requires=k3s.service gs-config.service 5 | 6 | [Service] 7 | Type=oneshot 8 | ExecStart=/usr/bin/load_usonic_config.sh 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/libsaibcm/PKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: 3 | - 'sonic:all' 4 | 5 | packages: 6 | - name: libsaibcm 7 | arch: amd64 8 | external: "$SONIC/target/debs/${ONL_DEBIAN_SUITE}/libsaibcm_3.5.2.3_amd64.deb" 9 | - name: libsaibcm-dev 10 | arch: amd64 11 | external: "$SONIC/target/debs/${ONL_DEBIAN_SUITE}/libsaibcm-dev_3.5.2.3_amd64.deb" 12 | -------------------------------------------------------------------------------- /packages/base/any/piu/include/piu.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct piu_cmd { 4 | unsigned int reg; 5 | unsigned int offset; 6 | unsigned int val; 7 | }; 8 | 9 | #define IOC_MAGIC 'p' 10 | 11 | #define PIU_READ _IOWR(IOC_MAGIC, 1, struct piu_cmd) 12 | #define PIU_WRITE _IOWR(IOC_MAGIC, 2, struct piu_cmd) 13 | #define PIU_INIT _IOWR(IOC_MAGIC, 3, struct piu_cmd) 14 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/builds/Makefile: -------------------------------------------------------------------------------- 1 | VERSION := 0.5.0 2 | DIGEST := 3987ada8df076e6d7352c8d5212dbd2131b4e3f3c8d9cc79d6600a0fcee87cb2 3 | 4 | LIBS := libtai-mdx1.so.$(VERSION) mdx1_fw_app_revb.mem.$(VERSION) 5 | 6 | all: $(LIBS) 7 | 8 | $(LIBS): 9 | oras pull ghcr.io/oopt-goldstone/libtai-mdx1:$(VERSION)@sha256:$(DIGEST) 10 | tar xvf libtai-mdx1_$(VERSION)_linux_arm64.tar 11 | -------------------------------------------------------------------------------- /packages/base/all/sysconfig/PKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: x1-sysconfig 3 | version: 1.0.0 4 | copyright: Copyright 2018 Big Switch Networks 5 | maintainer: support@bigswitch.com 6 | changelog: Initial 7 | support: support@bigswitch.com 8 | arch: all 9 | summary: X1 Sysconfig Package 10 | 11 | files: 12 | src/x1.yml : /etc/onl/sysconfig/01-x1.yml 13 | 14 | -------------------------------------------------------------------------------- /packages/base/any/k3s/builds/prep-k3s.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Prepare Lightweight Kubernetes 3 | Before=k3s.service 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=rm -rf /var/lib/rancher/k3s/server 8 | ExecStop=k3s-gs-killall.sh 9 | ExecStopPost=rm -rf /var/lib/rancher/k3s/server 10 | RemainAfterExit=true 11 | StandardOutput=jornal 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | systemctl disable usonic 6 | systemctl disable tai 7 | systemctl disable gs-mgmt-xlate.target 8 | systemctl enable gs-mgmt-south.target 9 | systemctl disable gs-north-gnmi 10 | systemctl enable ocnos 11 | systemctl enable gs-south-onlp 12 | systemctl enable gs-south-ocnos 13 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/builds/ocnos.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=OcNOS 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/ocnos.sh start 8 | ExecStop=-/usr/bin/ocnos.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /tools/debug.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cmd="$@" 4 | toolsdir=$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd) 5 | 6 | set -x 7 | . setup.env 8 | 9 | make versions 10 | 11 | bash -e -x $ONL/tools/scripts/submodule-updated.sh 12 | 13 | make modules 14 | 15 | if test $# -eq 0; then 16 | exec bash -i 17 | fi 18 | 19 | cmd="IFS=; set -e; set -x; $cmd; exit 0" 20 | exec bash -c "$cmd" 21 | 22 | set +x 23 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/tai.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=TAI shell service 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/tai.sh start 8 | ExecStop=-/usr/bin/tai.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/usonic.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=uSONiC 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/usonic.sh start 8 | ExecStop=-/usr/bin/usonic.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/tai.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=TAI shell service 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/tai.sh start 8 | ExecStop=-/usr/bin/tai.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7716-24sc 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-module-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone module for $PLATFORM 13 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7716-24xc 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-module-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone module for $PLATFORM 13 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7716-32x 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-module-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone module for $PLATFORM 13 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/src/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # Local source generation targets. 4 | # 5 | ############################################################################### 6 | 7 | ucli: 8 | @../../../../tools/uclihandlers.py arm64_wistron_wtp_01_c1_00_ucli.c 9 | 10 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-wistron-wtp-01-02-00 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-module-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone module for $PLATFORM 13 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/modules/builds/Kbuild: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | 3 | ARCH := arm64 4 | BASENAME := arm64-wistron-wtp-01-c1-00 5 | NAME := led psu 6 | 7 | SOURCES := $(foreach a,$(NAME),$(BASENAME)-$(a).c) 8 | 9 | obj-m := $(foreach a,$(NAME),$(BASENAME)-$(a).o) 10 | 11 | ccflags-y := -I$(X1)/sm/linux/drivers/net/ethernet 12 | 13 | # vim: ft=make 14 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/src/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # Local source generation targets. 4 | # 5 | ############################################################################### 6 | 7 | ucli: 8 | @../../../../tools/uclihandlers.py x86_64_wistron_wtp_01_02_00_ucli.c 9 | 10 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-system.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone System South Daemon 3 | After=gs-yang.service 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=simple 9 | ExecStart=/usr/local/bin/gssouthd-system -v 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=gs-mgmt-south.target 14 | Also=gs-south-system-yang.service 15 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/src/make.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # 4 | # 5 | ############################################################################### 6 | 7 | LIBRARY := arm64_wistron_wtp_01_c1_00 8 | $(LIBRARY)_SUBDIR := $(dir $(lastword $(MAKEFILE_LIST))) 9 | include $(BUILDER)/lib.mk 10 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/manifests/tai.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: tai 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: taish-server 10 | image: tai-amd64:latest 11 | env: 12 | - name: TAI_MUX_PLATFORM_ADAPTER 13 | value: "exec" 14 | - name: TAI_MUX_EXEC_SCRIPT 15 | value: "/etc/tai/mux/exec.py" 16 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/patches/sonic-platform-common/series: -------------------------------------------------------------------------------- 1 | 0001-sfp-Define-OpenZR-transceiver-types-for-SFF-8024.patch 2 | 0002-xcvr-Allow-non-sequential-appl-code.patch 3 | 0003-xcvr-Add-__init__.py-for-credo.patch 4 | 0004-xcvr-Fix-assert-warning.patch 5 | 0005-xcvr-Modify-exception-handling-of-getting-VDM.patch 6 | 0006-xcvr-Limit-the-VDM-items-for-performance.patch 7 | 0007-xcvr-Fix-active_apsel_hostlane-memmap.patch 8 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/xcvrd.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Transceiver Monitoring Daemon 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/xcvrd.sh start 8 | ExecStop=-/usr/bin/xcvrd.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/src/make.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # 4 | # 5 | ############################################################################### 6 | 7 | LIBRARY := x86_64_wistron_wtp_01_02_00 8 | $(LIBRARY)_SUBDIR := $(dir $(lastword $(MAKEFILE_LIST))) 9 | include $(BUILDER)/lib.mk 10 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/manifests/config-db-json.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | config_db.json: | 4 | { 5 | "DEVICE_METADATA": { 6 | "localhost": { 7 | "hwsku": "usonic", 8 | "mac": "72:16:EA:18:79:F9", 9 | "platform": "x86_64-usonic" 10 | } 11 | } 12 | } 13 | kind: ConfigMap 14 | metadata: 15 | name: config-db-json 16 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/builds/tai-dpll.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=TAI DPLL shell service 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/tai-dpll.sh start 8 | ExecStop=-/usr/bin/tai-dpll.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # 4 | # 5 | ############################################################################### 6 | include $(ONL)/make/config.mk 7 | MODULE := arm64_wistron_wtp_01_c1_00 8 | AUTOMODULE := arm64_wistron_wtp_01_c1_00 9 | include $(BUILDER)/definemodule.mk 10 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # 4 | # 5 | ############################################################################### 6 | include $(ONL)/make/config.mk 7 | MODULE := x86_64_wistron_wtp_01_02_00 8 | AUTOMODULE := x86_64_wistron_wtp_01_02_00 9 | include $(BUILDER)/definemodule.mk 10 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/builds/tai-gearbox.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=TAI Gearbox shell service 3 | 4 | [Service] 5 | Type=oneshot 6 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 7 | ExecStart=/usr/bin/tai-gearbox.sh start 8 | ExecStop=-/usr/bin/tai-gearbox.sh stop 9 | RemainAfterExit=true 10 | StandardOutput=journal 11 | 12 | [Install] 13 | WantedBy=multi-user.target 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Everything in the REPO directory is ignored by default. 2 | 3 | # Build products 4 | BUILD/ 5 | dependmodules.x 6 | *.deb 7 | *.cpio.gz 8 | *.sqsh 9 | *.pyc 10 | *.pyo 11 | *.ko 12 | 13 | # Package cache and lock files 14 | .lock 15 | .PKGs.cache* 16 | 17 | # Local module manifest. 18 | .manifest.mk 19 | RELEASE/ 20 | 21 | .bash_history 22 | .buildroot-ccache 23 | 24 | # temporary files 25 | *~ 26 | .#* 27 | 28 | .python-version 29 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: ci 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - master 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: crazy-max/ghaction-docker-buildx@v1 12 | with: 13 | version: latest 14 | - uses: actions/checkout@v2 15 | - run: git submodule update --init 16 | - run: make builder 17 | - run: make docker 18 | -------------------------------------------------------------------------------- /packages/base/any/sai-sanity/builds/Makefile: -------------------------------------------------------------------------------- 1 | ifndef ARCH 2 | $(error $$ARCH not set) 3 | endif 4 | 5 | # 6 | # This is just a build hack at this point. 7 | # 8 | all: 9 | sudo dpkg -i $(X1)/REPO/$(ONL_DEBIAN_SUITE)/packages/binary-$(ARCH)/libsaibcm_*.deb 10 | sudo dpkg -i $(X1)/REPO/$(ONL_DEBIAN_SUITE)/packages/binary-$(ARCH)/libsaibcm-dev_*.deb 11 | $(CROSS_COMPILER)gcc -o sai-sanity $(X1)/packages/base/any/sai-sanity/sai-sanity.c -I/usr/include/sai -lsai 12 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/manifests/sonic-version.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | data: 3 | sonic_version.yml: | 4 | build_version: 'HEAD.0-45847851' 5 | asic_type: broadcom 6 | commit_id: '443ccce' 7 | build_date: Fri Sep 27 23:52:52 UTC 2019 8 | build_number: 0 9 | built_by: goldstone-nos@googlegroups.com 10 | debian_version: 8.11 11 | kernel_version: 4.9.0-9-2-amd64 12 | kind: ConfigMap 13 | metadata: 14 | name: sonic-version 15 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/PKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: x1-loader-files 3 | arch: all 4 | version: 1.0.0 5 | copyright: Copyright 2018 Big Switch Networks 6 | maintainer: support@bigswitch.com 7 | changelog: Initial 8 | support: support@bigswitch.com 9 | summary: X1 Loader Files 10 | 11 | files: 12 | - src/lib: /lib 13 | - src/bin: /bin 14 | - src/usr/bin: /usr/bin 15 | - src/python: $PY_INSTALL 16 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-3.16-lts-x86_64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | ############################################################ 3 | export OUTPUT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 4 | export KERNEL := onl-kernel-3.16-lts-x86-64-all:amd64 5 | export ARCH := x86_64 6 | export SDK := $(X1)/sm/sonic-buildimage/platform/broadcom/saibcm-modules 7 | 8 | all: 9 | $(MAKE) -C $(X1)/packages/base/any/sai/bcm/saibcm-kernel/kbuilds 10 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.9-lts-x86_64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | ############################################################ 3 | export OUTPUT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 4 | export KERNEL := onl-kernel-4.9-lts-x86-64-all:amd64 5 | export ARCH := x86_64 6 | export SDK := $(X1)/sm/sonic-buildimage/platform/broadcom/saibcm-modules 7 | 8 | all: 9 | $(MAKE) -C $(X1)/packages/base/any/sai/bcm/saibcm-kernel/kbuilds 10 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-5.4-lts-x86_64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | ############################################################ 3 | export OUTPUT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 4 | export KERNEL := onl-kernel-5.4-lts-x86-64-all:amd64 5 | export ARCH := x86_64 6 | export SDK := $(X1)/sm/sonic-buildimage/platform/broadcom/saibcm-modules 7 | 8 | all: 9 | $(MAKE) -C $(X1)/packages/base/any/sai/bcm/saibcm-kernel/kbuilds 10 | -------------------------------------------------------------------------------- /packages/base/any/piu/kbuilds/aco.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define ACO_PIU_THERMAL_ENABLED 0x23c0 4 | #define ACO_PIU_THERMAL_VALUE 0x23c4 5 | 6 | #define ACO_PIU_CFP2_OFFSET 0x40000000 7 | 8 | #define ACO_PIU_FPGA_VERSION 0x30090000 9 | 10 | int aco_piu_i2c_read(struct i2c_client *client, uint32_t addr, uint32_t *value); 11 | int aco_piu_i2c_write(struct i2c_client *client, uint32_t addr, uint32_t value); 12 | int aco_cfp2_exists(struct i2c_client *client); 13 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/src/lib/boot-custom: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # 3 | # Included by the ONL boot1 script to perform 4 | # custom preparation prior to switching root. 5 | # 6 | ############################################################ 7 | cp -R /etc/goldstone /newroot/etc 8 | 9 | if [ -d /var/run/udhcpc ]; then 10 | cp -R /var/run/udhcpc /newroot/etc/goldstone/loader 11 | fi 12 | 13 | ip link set dev ma1 name eth0 14 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7316-26xb 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-module-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | changelog: Initial 13 | support: goldstone-support-group@ipinfusion.com 14 | summary: Goldstone module for $PLATFORM 15 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7946-30xb 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-module-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | changelog: Initial 13 | support: goldstone-support-group@ipinfusion.com 14 | summary: Goldstone module for $PLATFORM 15 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/src/arm64_wistron_wtp_01_c1_00_enums.c: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #include 7 | 8 | /* <--auto.start.enum(ALL).source> */ 9 | /* */ 10 | 11 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | with open("requirements.txt", "r") as f: 4 | install_requires = f.read().split() 5 | 6 | setuptools.setup( 7 | name="bcmd", 8 | version="0.1.0", 9 | install_requires=install_requires, 10 | entry_points={ 11 | "console_scripts": [ 12 | "bcmd = bcmd.server:main", 13 | "bcmsh = bcmd.client:main", 14 | ], 15 | }, 16 | packages=["bcmd"], 17 | zip_safe=False, 18 | ) 19 | -------------------------------------------------------------------------------- /packages/base/any/kernels/4.19-lts/configs/x86_64-all/Makefile: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | include $(ONL)/make/config.mk 3 | 4 | export ARCH := x86_64 5 | ifndef K_TARGET_DIR 6 | K_TARGET_DIR := $(THIS_DIR) 7 | endif 8 | 9 | include ../../kconfig.mk 10 | K_CONFIG := x86_64-all.config 11 | K_BUILD_TARGET := bzImage 12 | K_COPY_SRC := arch/x86/boot/bzImage 13 | ifndef K_COPY_DST 14 | K_COPY_DST := kernel-4.19-lts-x86_64-all 15 | endif 16 | 17 | include $(ONL)/make/kbuild.mk 18 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-platform-config/builds/xcvrd/port_config.ini: -------------------------------------------------------------------------------- 1 | # name lanes alias index speed 2 | Ethernet0 0,1,2,3,4,5,6,7 fourHundredGigE1 1 400000 3 | Ethernet1 8,9,10,11,12,13,14,15 fourHundredGigE2 2 400000 4 | Ethernet2 16,17,18,19,20,21,22,23 fourHundredGigE3 3 400000 5 | Ethernet3 24,25,26,27,28,29,30,31 fourHundredGigE4 4 400000 6 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/lib/libonlp-arm64-wistron-wtp-01-c1-00.mk: -------------------------------------------------------------------------------- 1 | 2 | ############################################################################### 3 | # 4 | # Inclusive Makefile for the libonlp-arm64-wistron-wtp-01-c1-00 module. 5 | # 6 | # Autogenerated 2022-03-22 18:34:39.751422 7 | # 8 | ############################################################################### 9 | libonlp-arm64-wistron-wtp-01-c1-00_BASEDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) 10 | 11 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "sm/sonic-buildimage"] 2 | path = sm/sonic-buildimage 3 | url = https://github.com/microsonic/sonic-buildimage.git 4 | [submodule "sm/linux-gft"] 5 | path = sm/linux-gft 6 | url = https://github.com/oopt-goldstone/linux-gft.git 7 | [submodule "sm/sonic-buildimage-xcvrd"] 8 | path = sm/sonic-buildimage-xcvrd 9 | url = https://github.com/sonic-net/sonic-buildimage.git 10 | branch = 202205 11 | [submodule "sm/ONL"] 12 | path = sm/ONL 13 | url = https://github.com/oopt-goldstone/OpenNetworkLinux 14 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/PKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-ocnos 3 | arch: amd64 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | changelog: Initial 7 | support: goldstone-support-group@ipinfusion.com 8 | summary: ocnos 9 | before-remove: $__DIR__/before-remove.sh 10 | depends: 11 | - k3s 12 | - jq 13 | files: 14 | builds/manifests: /var/lib/ocnos/k8s 15 | builds/ocnos.service: /etc/systemd/system/ 16 | builds/ocnos.sh: /usr/bin/ 17 | -------------------------------------------------------------------------------- /packages/base/amd64/upgrade/PKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: 3 | - onl-kernel-5.4-lts-x86-64-all:amd64 4 | - x1-loader-initrd:amd64 5 | 6 | packages: 7 | - name: x1-upgrade 8 | arch: amd64 9 | version: 1.0.0 10 | copyright: Copyright 2018 Big Switch Networks 11 | maintainer: support@bigswitch.com 12 | changelog: Initial 13 | support: support@bigswitch.com 14 | summary: Goldstone Upgrade Package 15 | 16 | files: 17 | builds/files : /etc/goldstone/upgrade/amd64 18 | -------------------------------------------------------------------------------- /packages/base/amd64/upgrade/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/config.amd64.mk 2 | 3 | # All amd64 kernels 4 | KERNELS := $(shell $(ONLPM) --find-file onl-kernel-5.4-lts-x86-64-all:amd64 kernel-5.4-lts-x86_64-all) 5 | 6 | # Loader initrd 7 | INITRD := $(shell $(ONLPM) --find-file x1-loader-initrd:amd64 x1-loader-initrd-amd64.cpio.gz) 8 | MANIFEST := $(shell $(ONLPM) --find-file x1-loader-initrd:amd64 manifest.json) 9 | 10 | all: 11 | mkdir -p files 12 | cp $(KERNELS) files 13 | cp $(INITRD) files 14 | cp $(MANIFEST) files 15 | 16 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/auto/make.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # arm64_wistron_wtp_01_c1_00 Autogeneration 4 | # 5 | ############################################################################### 6 | arm64_wistron_wtp_01_c1_00_AUTO_DEFS := module/auto/arm64_wistron_wtp_01_c1_00.yml 7 | arm64_wistron_wtp_01_c1_00_AUTO_DIRS := module/inc/arm64_wistron_wtp_01_c1_00 module/src 8 | include $(BUILDER)/auto.mk 9 | 10 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/modules/PKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: 3 | - goldstone-kernel-5.4-lts-arm64-all:arm64 4 | 5 | variables: 6 | ARCH: arm64 7 | BASENAME: arm64-wistron-wtp-01-c1-00 8 | REVISION: r0 9 | PLATFORM: $BASENAME 10 | 11 | packages: 12 | - name: onl-platform-modules-$PLATFORM 13 | arch: $ARCH 14 | version: 1.0.0 15 | maintainer: goldstone-nos@googlegroups.com 16 | summary: onl platform modules for $PLATFORM 17 | files: 18 | builds/lib: lib 19 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-module/PKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: 3 | - goldstone-kernel-5.4-lts-arm64-all:arm64 4 | 5 | variables: 6 | ARCH: arm64 7 | BASENAME: arm64-wistron-wtp-01-c1-00 8 | REVISION: r0 9 | PLATFORM: $BASENAME-$REVISION 10 | 11 | packages: 12 | - name: goldstone-module-$PLATFORM 13 | arch: $ARCH 14 | version: 1.0.0 15 | maintainer: goldstone-nos@googlegroups.com 16 | summary: Goldstone module for $PLATFORM 17 | files: 18 | builds/lib: lib 19 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/auto/make.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # x86_64_wistron_wtp_01_02_00 Autogeneration 4 | # 5 | ############################################################################### 6 | x86_64_wistron_wtp_01_02_00_AUTO_DEFS := module/auto/x86_64_wistron_wtp_01_02_00.yml 7 | x86_64_wistron_wtp_01_02_00_AUTO_DIRS := module/inc/x86_64_wistron_wtp_01_02_00 module/src 8 | include $(BUILDER)/auto.mk 9 | 10 | -------------------------------------------------------------------------------- /make/mgmt.mk: -------------------------------------------------------------------------------- 1 | GS_MGMT_IMAGE_REPO ?= ghcr.io/oopt-goldstone/mgmt 2 | GS_MGMT_VERSION ?= v0.8.0 3 | 4 | .PHONY: manifests 5 | 6 | ifndef X1 7 | $(error $X1 is not defined) 8 | endif 9 | 10 | GS_MGMT_BASE ?= $(X1)/packages/base/any/mgmt/builds/manifests 11 | 12 | manifests: 13 | rm -rf manifests && mkdir manifests 14 | for file in $(wildcard $(TEMPLATE_DIR)/*.yaml);\ 15 | do\ 16 | sed -e s!IMAGE_TAG!$(IMAGE_TAG)!g -e s!MGMT_IMAGE_REPO!$(GS_MGMT_IMAGE_REPO)!g $$file > manifests/$$(basename $$file);\ 17 | done 18 | cp -r $(GS_MGMT_BASE) manifests/base 19 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7316-26xb/goldstone-platform-config/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7316-26xb 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-platform-config-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | support: goldstone-support-group@ipinfusion.com 13 | summary: Goldstone config file for $PLATFORM 14 | files: 15 | builds/init.sh: /var/lib/goldstone/device/$PLATFORM/init.sh 16 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/src/arm64_wistron_wtp_01_c1_00_log.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #ifndef __ARM64_WISTRON_WTP_01_C1_00_LOG_H__ 7 | #define __ARM64_WISTRON_WTP_01_C1_00_LOG_H__ 8 | 9 | #define AIM_LOG_MODULE_NAME arm64_wistron_wtp_01_c1_00 10 | #include 11 | 12 | #endif /* __ARM64_wistron_wtp_01_c1_00_LOG_H__ */ 13 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/builds/gs-north-netconf.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management North NETCONF Daemon 3 | After=gs-mgmt-south.target 4 | PartOf=gs-mgmt-north.target gs-mgmt.target 5 | 6 | [Service] 7 | Type=oneshot 8 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 9 | ExecStart=/usr/bin/netopeer2.sh start 10 | ExecStop=-/usr/bin/netopeer2.sh stop 11 | RemainAfterExit=true 12 | StandardOutput=journal 13 | 14 | [Install] 15 | WantedBy=gs-mgmt-north.target 16 | Also=gs-north-netconf-yang.service 17 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/manifests/start-script.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: start-script 5 | data: 6 | start.sh: | 7 | #!/bin/sh 8 | set -eux 9 | 10 | REDIS_HOST='-h redis.default.svc.cluster.local' 11 | # REDIS_HOST='-h 127.0.0.1' 12 | 13 | redis-cli ${REDIS_HOST} flushall 14 | 15 | for daemon in syncd:syncd intfmgrd:intfmgrd orchagent:orchagent portsyncd:portsyncd neighsyncd:neighsyncd vlanmgrd:vlanmgrd; 16 | do 17 | redis-cli -n 3 ${REDIS_HOST} hset $daemon LOGOUTPUT STDERR; 18 | done 19 | -------------------------------------------------------------------------------- /packages/base/any/python3.10/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: python3.10 3 | arch: $ARCH 4 | version: 3.10.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Python3.10 7 | after-install: $X1/packages/base/any/python3.10/after-install.sh 8 | files: 9 | builds/python: /usr/local/bin/python 10 | builds/pip: /usr/local/bin/pip 11 | builds/python3.10: /usr/local/lib/python3.10 12 | builds/libpython3.10.so.1.0: /usr/local/lib/libpython3.10.so.1.0 13 | links: 14 | /usr/local/bin/python3: /usr/local/bin/python 15 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/src/x86_64_wistron_wtp_01_02_00_log.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #ifndef __X86_64_WISTRON_WTP_01_02_00_LOG_H__ 7 | #define __X86_64_WISTRON_WTP_01_02_00_LOG_H__ 8 | 9 | #define AIM_LOG_MODULE_NAME x86_64_wistron_wtp_01_02_00 10 | #include 11 | 12 | #endif /* __X86_64_wistron_wtp_01_02_00_LOG_H__ */ 13 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/make.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # 4 | # 5 | ############################################################################### 6 | THIS_DIR := $(dir $(lastword $(MAKEFILE_LIST))) 7 | arm64_wistron_wtp_01_c1_00_INCLUDES := -I $(THIS_DIR)inc 8 | arm64_wistron_wtp_01_c1_00_INTERNAL_INCLUDES := -I $(THIS_DIR)src 9 | arm64_wistron_wtp_01_c1_00_DEPENDMODULE_ENTRIES := init:arm64_wistron_wtp_01_c1_00 ucli:arm64_wistron_wtp_01_c1_00 10 | 11 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/mgmt.mk 2 | 3 | TEMPLATE_DIR ?= $(X1)/packages/base/any/xlate-oc/builds/templates 4 | 5 | IMAGE_TAG ?= $(GS_MGMT_VERSION) 6 | IMAGES ?= xlate-oc 7 | XLATE_OC_IMAGES ?= $(addsuffix :$(IMAGE_TAG),$(addprefix $(GS_MGMT_IMAGE_REPO)/,$(IMAGES))) 8 | 9 | .PHONY: gs-xlate-oc-$(ARCH).tar 10 | 11 | .DEFAULT_GOAL := all 12 | 13 | all: gs-xlate-oc-$(ARCH).tar manifests 14 | 15 | gs-xlate-oc-$(ARCH).tar: 16 | for image in $(XLATE_OC_IMAGES); do docker pull --platform=linux/$(ARCH) $$image; done 17 | docker save $(XLATE_OC_IMAGES) > $@ 18 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/mgmt.mk 2 | 3 | TEMPLATE_DIR ?= $(X1)/packages/base/any/xlate-or/builds/templates 4 | 5 | IMAGE_TAG ?= $(GS_MGMT_VERSION) 6 | IMAGES ?= xlate-or 7 | XLATE_OR_IMAGES ?= $(addsuffix :$(IMAGE_TAG),$(addprefix $(GS_MGMT_IMAGE_REPO)/,$(IMAGES))) 8 | 9 | .PHONY: gs-xlate-or-$(ARCH).tar 10 | 11 | .DEFAULT_GOAL := all 12 | 13 | all: gs-xlate-or-$(ARCH).tar manifests 14 | 15 | gs-xlate-or-$(ARCH).tar: 16 | for image in $(XLATE_OR_IMAGES); do docker pull --platform=linux/$(ARCH) $$image; done 17 | docker save $(XLATE_OR_IMAGES) > $@ 18 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/make.mk: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # 4 | # 5 | ############################################################################### 6 | THIS_DIR := $(dir $(lastword $(MAKEFILE_LIST))) 7 | x86_64_wistron_wtp_01_02_00_INCLUDES := -I $(THIS_DIR)inc 8 | x86_64_wistron_wtp_01_02_00_INTERNAL_INCLUDES := -I $(THIS_DIR)src 9 | x86_64_wistron_wtp_01_02_00_DEPENDMODULE_ENTRIES := init:x86_64_wistron_wtp_01_02_00 ucli:x86_64_wistron_wtp_01_02_00 10 | 11 | -------------------------------------------------------------------------------- /packages/base/amd64/sai/bcm/saibcm-kernel-4.14-lts-x86_64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | ############################################################ 3 | export OUTPUT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 4 | export KERNEL := onl-kernel-4.14-lts-x86-64-all:amd64 5 | export ARCH := x86_64 6 | export SDK := $(X1)/sm/sonic-buildimage/platform/broadcom/saibcm-modules 7 | export ccflags-extra = -Dpci_enable_msix=pci_enable_msix_exact -include linux/uaccess.h -include linux/sched/signal.h 8 | 9 | all: 10 | $(MAKE) -C $(X1)/packages/base/any/sai/bcm/saibcm-kernel/kbuilds 11 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/mgmt.mk 2 | 3 | TEMPLATE_DIR ?= $(X1)/packages/base/any/gnmi/builds/templates 4 | 5 | IMAGE_TAG ?= $(GS_MGMT_VERSION) 6 | IMAGES ?= north-gnmi 7 | NORTH_GNMI_IMAGES ?= $(addsuffix :$(IMAGE_TAG),$(addprefix $(GS_MGMT_IMAGE_REPO)/,$(IMAGES))) 8 | 9 | .PHONY: gs-north-gnmi-$(ARCH).tar 10 | 11 | .DEFAULT_GOAL := all 12 | 13 | all: gs-north-gnmi-$(ARCH).tar manifests 14 | 15 | gs-north-gnmi-$(ARCH).tar: 16 | for image in $(NORTH_GNMI_IMAGES); do docker pull --platform=linux/$(ARCH) $$image; done 17 | docker save $(NORTH_GNMI_IMAGES) > $@ 18 | -------------------------------------------------------------------------------- /packages/base/any/snmp/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/mgmt.mk 2 | 3 | TEMPLATE_DIR ?= $(X1)/packages/base/any/snmp/builds/templates 4 | 5 | IMAGE_TAG ?= $(GS_MGMT_VERSION) 6 | IMAGES ?= snmpd north-snmp 7 | SNMP_IMAGES ?= $(addsuffix :$(IMAGE_TAG),$(addprefix $(GS_MGMT_IMAGE_REPO)/,$(IMAGES))) 8 | 9 | .PHONY: gs-snmp-$(ARCH).tar 10 | 11 | .DEFAULT_GOAL := all 12 | 13 | all: gs-snmp-$(ARCH).tar manifests 14 | 15 | gs-snmp-$(ARCH).tar: 16 | echo $(SNMP_IMAGES) 17 | for image in $(SNMP_IMAGES); do docker pull --platform=linux/$(ARCH) $$image; done 18 | docker save $(SNMP_IMAGES) > $@ 19 | -------------------------------------------------------------------------------- /packages/base/arm64/tai/builds/manifests/tai.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: tai 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: taish-server 10 | image: tai-arm64:latest 11 | env: 12 | - name: TAI_MUX_PLATFORM_ADAPTER 13 | value: "exec" 14 | - name: TAI_MUX_EXEC_SCRIPT 15 | value: "/etc/tai/mux/exec.py" 16 | volumeMounts: 17 | - name: sys 18 | mountPath: /sys 19 | volumes: 20 | - name: sys 21 | hostPath: 22 | path: /sys 23 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/inc/arm64_wistron_wtp_01_c1_00/arm64_wistron_wtp_01_c1_00.x: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #include 7 | 8 | /* <--auto.start.xmacro(ALL).define> */ 9 | /* */ 10 | 11 | /* <--auto.start.xenum(ALL).define> */ 12 | /* */ 13 | 14 | 15 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-north-notif.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management North Notification Daemon 3 | After=gs-yang.service gs-mgmt-south.target 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-north.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start north-notif 11 | ExecStop=-/usr/bin/gs-mgmt.py stop north-notif 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-north.target 17 | -------------------------------------------------------------------------------- /packages/base/any/snmp/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-snmp 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone SNMP server 7 | after-install: $X1/packages/base/any/snmp/after-install.sh 8 | before-remove: $X1/packages/base/any/snmp/before-remove.sh 9 | depends: 10 | - k3s 11 | - gs-mgmt 12 | files: 13 | builds/manifests: /var/lib/gs-snmp/k8s 14 | builds/gs-snmp-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 15 | $X1/packages/base/any/snmp/builds/gs-north-snmp.service: /etc/systemd/system/ 16 | -------------------------------------------------------------------------------- /packages/base/arm64/tai/builds/Makefile: -------------------------------------------------------------------------------- 1 | TAI_LIBS := libtai-ldc.so.0.7.0 libtai-menara.so.0.7.0 libtai-lumentum.so.0.7.0 libtai-mux.so.0.7.0 2 | 3 | include $(X1)/make/config.arm64.mk 4 | include $(X1)/packages/base/any/tai/builds/Makefile 5 | 6 | $(LIB_DIR)/libtai-ldc.so.0.7.0: 7 | $(call download_library,libtai-ldc:0.7.0) 8 | 9 | $(LIB_DIR)/libtai-menara.so.0.7.0: 10 | $(call download_library,libtai-menara:0.7.0) 11 | 12 | $(LIB_DIR)/libtai-lumentum.so.0.7.0: 13 | $(call download_library,libtai-lumentum:0.7.0) 14 | 15 | $(LIB_DIR)/libtai-mux.so.0.7.0: 16 | $(call download_library,libtai-mux:0.7.0) 17 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/inc/x86_64_wistron_wtp_01_02_00/x86_64_wistron_wtp_01_02_00.x: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #include 7 | 8 | /* <--auto.start.xmacro(ALL).define> */ 9 | /* */ 10 | 11 | /* <--auto.start.xenum(ALL).define> */ 12 | /* */ 13 | 14 | 15 | -------------------------------------------------------------------------------- /packages/base/any/fit/loader/builds/Makefile: -------------------------------------------------------------------------------- 1 | ifndef ARCH 2 | $(error $$ARCH must be set) 3 | endif 4 | 5 | .PHONY: x1-loader-fit.itb x1-loader-fit.its 6 | 7 | x1-loader-fit.itb: its 8 | $(ONL)/tools/flat-image-tree.py --initrd x1-loader-initrd:$(ARCH),x1-loader-initrd-$(ARCH).cpio.gz --arch $(ARCH) --add-platform initrd --itb $@ 9 | $(ONLPM) --copy-file x1-loader-initrd:$(ARCH) manifest.json . 10 | 11 | x1-loader-fit.its: 12 | $(ONL)/tools/flat-image-tree.py --initrd x1-loader-initrd:$(ARCH),x1-loader-initrd-$(ARCH).cpio.gz --arch $(ARCH) --add-platform initrd --its $@ 13 | 14 | its: x1-loader-fit.its 15 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-onlp.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South ONLP Daemon 3 | After=gs-yang.service 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start south-onlp 11 | ExecStop=-/usr/bin/gs-mgmt.py stop south-onlp 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-south.target 17 | Also=gs-south-onlp-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/any/sai-sanity/APKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: 3 | - 'libsaibcm:$ARCH' 4 | - 'libsaibcm-dev:$ARCH' 5 | 6 | packages: 7 | - name: x1-sai-sanity 8 | arch: $ARCH 9 | version: 1.0.0 10 | copyright: Copyright 2018 Big Switch Networks 11 | maintainer: support@bigswitch.com 12 | changelog: Initial 13 | support: support@bigswitch.com 14 | summary: X1 SAI Sanity Test Program 15 | depends: 16 | - libsaibcm 17 | - libsaibcm-dev 18 | build-depends: 19 | - libsaibcm 20 | - libsaibcm-dev 21 | files: 22 | builds/sai-sanity : /usr/bin/ 23 | -------------------------------------------------------------------------------- /packages/base/any/templates/x1-docker.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: x1-docker-${SERVICE} 3 | arch: ${ARCH} 4 | version: ${VERSION} 5 | copyright: Copyright 2018 Big Switch Networks 6 | maintainer: support@bigswitch.com 7 | changelog: Initial 8 | support: support@bigswitch.com 9 | summary: X1 Docker Service for ${SERVICE} 10 | after-install: $__DIR__/after-install.sh 11 | after-remove: $__DIR__/after-remove.sh 12 | depends: 13 | - docker-ce 14 | build-depends: 15 | - docker-ce 16 | files: 17 | $__DIR__/builds/docker-${SERVICE}.gz: /var/cache/apt/ 18 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/src/arm64_wistron_wtp_01_c1_00_int.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * arm64_wistron_wtp_01_c1_00 Internal Header 4 | * 5 | *****************************************************************************/ 6 | #ifndef __ARM64_WISTRON_WTP_01_C1_00_INT_H__ 7 | #define __ARM64_WISTRON_WTP_01_C1_00_INT_H__ 8 | 9 | #include 10 | 11 | 12 | #endif /* __ARM64_wistron_wtp_01_c1_00_INT_H__ */ 13 | -------------------------------------------------------------------------------- /packages/base/any/snmp/builds/gs-north-snmp.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management North SNMP Daemon 3 | After=gs-mgmt-south.target 4 | PartOf=gs-mgmt-north.target gs-mgmt.target 5 | 6 | [Service] 7 | Type=oneshot 8 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 9 | ExecStart=/usr/bin/gs-mgmt.py start north-snmp --manifest-dir /var/lib/gs-snmp/k8s 10 | ExecStop=-/usr/bin/gs-mgmt.py stop north-snmp --manifest-dir /var/lib/gs-snmp/k8s 11 | RemainAfterExit=true 12 | StandardOutput=journal 13 | 14 | [Install] 15 | WantedBy=gs-mgmt-north.target 16 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | modprobe fsl-enetc-chardev-mdio 6 | modprobe arm64-wistron-wtp-01-c1-00-cfp2 7 | modprobe arm64-wistron-wtp-01-c1-00-dpll 8 | modprobe arm64-wistron-wtp-01-c1-00-psu 9 | modprobe arm64-wistron-wtp-01-c1-00-led 10 | 11 | echo dpll1 0x24 > /sys/bus/i2c/devices/i2c-0/new_device 12 | 13 | systemctl enable gs-south-onlp 14 | systemctl enable gs-south-tai 15 | systemctl enable gs-south-system 16 | systemctl enable gs-south-gearbox 17 | systemctl enable gs-south-dpll 18 | systemctl enable gs-xlate-or 19 | -------------------------------------------------------------------------------- /packages/base/any/k3s/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: k3s 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: k3s 7 | after-install: $X1/packages/base/any/k3s/after-install.sh 8 | build-depends: 9 | - apt-transport-https 10 | - ca-certificates 11 | files: 12 | builds/k3s-airgap-images-$ARCH.tar.gz: /var/lib/rancher/k3s/agent/images/ 13 | builds/k3s: /usr/local/bin/ 14 | $X1/packages/base/any/k3s/builds/k3s-gs-killall.sh: /usr/local/bin/ 15 | $X1/packages/base/any/k3s/builds/prep-k3s.service: /etc/systemd/system/ 16 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/src/x86_64_wistron_wtp_01_02_00_int.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * x86_64_wistron_wtp_01_02_00 Internal Header 4 | * 5 | *****************************************************************************/ 6 | #ifndef __X86_64_WISTRON_WTP_01_02_00_INT_H__ 7 | #define __X86_64_WISTRON_WTP_01_02_00_INT_H__ 8 | 9 | #include 10 | 11 | 12 | #endif /* __X86_64_wistron_wtp_01_02_00_INT_H__ */ 13 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/platform-config/r0/src/lib/x86-64-wistron-wtp-01-02-00-r0.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | ###################################################################### 4 | # 5 | # platform-config for WTP-01-02-00 6 | # 7 | ###################################################################### 8 | 9 | x86-64-wistron-wtp-01-02-00-r0: 10 | 11 | grub: 12 | 13 | serial: >- 14 | --port=0x3f8 15 | --speed=115200 16 | --word=8 17 | --parity=no 18 | --stop=1 19 | 20 | kernel: 21 | <<: *kernel-5-4 22 | 23 | args: >- 24 | console=ttyS0,115200n8 25 | -------------------------------------------------------------------------------- /packages/base/any/fit/loader/APKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: 3 | - x1-loader-initrd:$ARCH 4 | stage: 3 5 | 6 | common: 7 | arch: $ARCH 8 | version: 1.0.0 9 | copyright: Copyright 2013, 2014, 2015 Big Switch Networks 10 | maintainer: support@bigswitch.com 11 | support: opennetworklinux@googlegroups.com 12 | 13 | packages: 14 | - name: x1-loader-fit 15 | version: 1.0.0 16 | summary: X1 FIT Loader Image for $ARCH 17 | 18 | files: 19 | builds/x1-loader-fit.itb : $$PKG_INSTALL/ 20 | builds/manifest.json : $$PKG_INSTALL/ 21 | 22 | changelog: Change changes changes., 23 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-north-gnmi 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone gNMI server 7 | after-install: $X1/packages/base/any/gnmi/after-install.sh 8 | before-remove: $X1/packages/base/any/gnmi/before-remove.sh 9 | depends: 10 | - k3s 11 | - gs-mgmt 12 | files: 13 | builds/gs-north-gnmi-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 14 | builds/manifests: /var/lib/gs-north-gnmi/k8s 15 | $X1/packages/base/any/gnmi/builds/gs-north-gnmi.service: /etc/systemd/system/ 16 | -------------------------------------------------------------------------------- /packages/base/any/sai/bcm/saibcm-kernel/APKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | packages: [ 'onl-$KERNEL:$ARCH' ] 3 | 4 | packages: 5 | - name: x1-saibcm-$KERNEL 6 | summary: Broadcom SAI Kernel Modules for $KERNEL 7 | arch: $ARCH 8 | version: 6.5 9 | copyright: Copyright 2013-2018 Big Switch Networks 10 | maintainer: support@bigswitch.com 11 | changelog: None 12 | 13 | files: 14 | builds/lib : lib 15 | ${X1}/packages/base/any/sai/bcm/saibcm-kernel/10-bcm-kmods.rules: /etc/udev/rules.d/10-bcm-kmods.rules 16 | ${X1}/packages/base/any/sai/bcm/saibcm-kernel/bcm-kmods: /usr/bin/bcm-kmods 17 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/builds/gs-xlate-oc-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Translate OpenConfig Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | # --search-dirs option is tentatively given to explicitly install openconfig modules 8 | # TODO: investigate why --search-dirs option is needed to successfully install openconfig modules 9 | ExecStart=/usr/bin/gs-yang.py --install xlate-oc --search-dirs /var/lib/goldstone/yang/ietf /var/lib/goldstone/yang/oc 10 | RemainAfterExit=true 11 | StandardOutput=journal 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-tai.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South TAI Daemon 3 | After=gs-yang.service tai.service 4 | Requires=gs-yang.service tai.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start south-tai 11 | ExecStop=-/usr/bin/gs-mgmt.py stop south-tai 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-south.target 17 | Also=gs-south-tai-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/builds/gs-system-telemetry-yang.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Telemetry Daemon YANG model setup 3 | Before=gs-yang.service 4 | 5 | [Service] 6 | Type=oneshot 7 | # --search-dirs option is tentatively given to explicitly install openconfig modules 8 | # TODO: investigate why --search-dirs option is needed to successfully install openconfig modules 9 | ExecStart=/usr/bin/gs-yang.py --install system-telemetry --search-dirs /var/lib/goldstone/yang/gs /var/lib/goldstone/yang/oc 10 | RemainAfterExit=true 11 | StandardOutput=journal 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/galileo/main.py: -------------------------------------------------------------------------------- 1 | import sys 2 | import click 3 | from click_shell import make_click_shell 4 | 5 | from .base import cli 6 | 7 | from .fpga import fpga 8 | from .qsfp import qsfp 9 | from .piu import piu 10 | 11 | def main(): 12 | if '-c' in sys.argv: 13 | sys.argv = [v for v in sys.argv if v != '-c'] 14 | cli() 15 | else: 16 | shell = make_click_shell(click.Context(cli), prompt='Galileo > ', intro='Starting Galileo Diagnostics...') 17 | shell.cmdloop() 18 | 19 | if __name__ == '__main__': 20 | main() 21 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/Makefile: -------------------------------------------------------------------------------- 1 | XCVRD_IMAGE ?= xcvrd:latest 2 | REDIS_IMAGE ?= redis:latest 3 | sonic_buildimage_xcvrd_dir ?= $(X1)/sm/sonic-buildimage-xcvrd 4 | sm_onl_dir ?= $(X1)/sm/ONL 5 | git_modules_sm_onl_dir ?= $(X1)/.git/modules/sm/ONL 6 | 7 | all: xcvrd.tar 8 | 9 | xcvrd.tar: 10 | docker buildx build --build-context sonic_buildimage_xcvrd_dir=$(sonic_buildimage_xcvrd_dir) \ 11 | --build-context sm_onl_dir=$(sm_onl_dir) \ 12 | --build-context git_modules_sm_onl_dir=$(git_modules_sm_onl_dir) \ 13 | -t $(XCVRD_IMAGE) . 14 | docker pull $(REDIS_IMAGE) 15 | docker save $(XCVRD_IMAGE) $(REDIS_IMAGE) -o $@ 16 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-dpll.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South DPLL Daemon 3 | After=gs-yang.service tai-dpll.service 4 | Requires=gs-yang.service tai-dpll.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start south-dpll 11 | ExecStop=-/usr/bin/gs-mgmt.py stop south-dpll 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-south.target 17 | Also=gs-south-dpll-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-ocnos.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South OcNOS daemon 3 | After=gs-yang.service ocnos.service 4 | Requires=gs-yang.service ocnos.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start south-ocnos 11 | ExecStop=-/usr/bin/gs-mgmt.py stop south-ocnos 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-south.target 17 | Also=gs-south-ocnos-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-sonic.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South SONiC daemon 3 | After=gs-yang.service usonic.service 4 | Requires=gs-yang.service usonic.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start south-sonic 11 | ExecStop=-/usr/bin/gs-mgmt.py stop south-sonic 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-south.target 17 | Also=gs-south-sonic-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/mgmt.mk 2 | 3 | TEMPLATE_DIR ?= $(X1)/packages/base/any/telemetry/builds/templates 4 | 5 | IMAGE_TAG ?= $(GS_MGMT_VERSION) 6 | IMAGES ?= system-telemetry 7 | SYSTEM_TELEMETRY_IMAGES ?= $(addsuffix :$(IMAGE_TAG),$(addprefix $(GS_MGMT_IMAGE_REPO)/,$(IMAGES))) 8 | 9 | .PHONY: gs-system-telemetry-$(ARCH).tar 10 | 11 | .DEFAULT_GOAL := all 12 | 13 | all: gs-system-telemetry-$(ARCH).tar manifests 14 | 15 | gs-system-telemetry-$(ARCH).tar: 16 | for image in $(SYSTEM_TELEMETRY_IMAGES); do docker pull --platform=linux/$(ARCH) $$image; done 17 | docker save $(SYSTEM_TELEMETRY_IMAGES) > $@ 18 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/diag/setup.py: -------------------------------------------------------------------------------- 1 | import setuptools 2 | 3 | with open("requirements.txt", "r") as f: 4 | install_requires = f.read().split() 5 | 6 | setuptools.setup( 7 | name='galileo', 8 | version='0.2.0', 9 | install_requires=install_requires, 10 | description='Galileo Debug Tool', 11 | python_requires='>=3.7', 12 | entry_points={ 13 | 'console_scripts': [ 14 | 'galileo = galileo.main:main', 15 | ], 16 | }, 17 | packages=setuptools.find_packages(), 18 | zip_safe = False, 19 | ) 20 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/PKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-usonic 3 | arch: amd64 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: usonic 7 | after-install: $__DIR__/after-install.sh 8 | before-remove: $__DIR__/before-remove.sh 9 | depends: 10 | - k3s 11 | - jq 12 | files: 13 | builds/usonic-amd64.tar: /var/lib/rancher/k3s/agent/images/ 14 | builds/manifests: /var/lib/usonic/k8s 15 | builds/usonic.service: /etc/systemd/system/ 16 | builds/usonic.sh: /usr/bin/ 17 | builds/bcm.sh: /etc/profile.d/ 18 | builds/libsai.so: /var/lib/usonic/lib/ 19 | -------------------------------------------------------------------------------- /packages/base/any/piu/kbuilds/Kbuild: -------------------------------------------------------------------------------- 1 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | 3 | LINUX_KERNEL_PIU_NAME ?= cfp2piu 4 | 5 | obj-m := $(LINUX_KERNEL_PIU_NAME).o 6 | 7 | # 8 | # These are the sources that must be built into this module 9 | # 10 | SOURCES := $(addprefix $(THIS_DIR)/,piu.c aco.c dco.c) 11 | 12 | # 13 | # The kernel build system requires paths relative to the module build directory. 14 | # 15 | RELSOURCES := $(foreach source,$(SOURCES),$(shell realpath --relative-to=$(THIS_DIR) $(source))) 16 | 17 | $(LINUX_KERNEL_PIU_NAME)-y := $(RELSOURCES:.c=.o) 18 | 19 | ccflags-y := -I$(THIS_DIR)/../include 20 | 21 | # vim: ft=make 22 | -------------------------------------------------------------------------------- /packages/base/any/piu/kbuilds/dco.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define DCO_PIU_CFP2_OFFSET 0x00300000 4 | 5 | #define MCU_DEV_ADDR 0x00 6 | 7 | #define DCO_DEV_ADDR 0x30 8 | #define QSFP28_1_DEV_ADDR_OFFSET 0x00310000 9 | #define QSFP28_2_DEV_ADDR_OFFSET 0x00320000 10 | #define QSFP28_EEPROM_SIZE 256 11 | 12 | #define RETIMER_1_DEV_ADDR 0x40 13 | #define RETIMER_2_DEV_ADDR 0x41 14 | #define EEPROM_DEV_ADDR 0x50 15 | 16 | 17 | 18 | int dco_piu_i2c_read(struct i2c_client *client, uint32_t addr, uint32_t *value); 19 | int dco_piu_i2c_write(struct i2c_client *client, uint32_t addr, uint32_t value); 20 | int dco_cfp2_exists(struct i2c_client *client); 21 | -------------------------------------------------------------------------------- /packages/base/any/python3.10/builds/Makefile: -------------------------------------------------------------------------------- 1 | IMAGE_NAME ?= python:3.10-slim-buster 2 | 3 | all: python pip python3.10 libpython3.10.so.1.0 4 | 5 | python: 6 | docker run --rm -v `pwd`:/data -w /data --platform linux/$(ARCH) $(IMAGE_NAME) cp /usr/local/bin/$@ $@ 7 | 8 | pip: 9 | docker run --rm -v `pwd`:/data -w /data --platform linux/$(ARCH) $(IMAGE_NAME) cp /usr/local/bin/$@ $@ 10 | 11 | python3.10: 12 | docker run --rm -v `pwd`:/data -w /data --platform linux/$(ARCH) $(IMAGE_NAME) cp -r /usr/local/lib/$@ $@ 13 | 14 | libpython3.10.so.1.0: 15 | docker run --rm -v `pwd`:/data -w /data --platform linux/$(ARCH) $(IMAGE_NAME) cp -r /usr/local/lib/$@ $@ 16 | -------------------------------------------------------------------------------- /packages/platforms/vs/goldstone-platform-config/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | PLATFORM: vs 3 | 4 | packages: 5 | - name: goldstone-platform-config-vs 6 | arch: all 7 | version: 1.0.0 8 | maintainer: goldstone-nos@googlegroups.com 9 | summary: Goldstone config file for virtual switch 10 | files: 11 | builds/sai.profile: /var/lib/goldstone/device/$PLATFORM/usonic/sai.profile 12 | builds/lanemap.conf: /var/lib/goldstone/device/$PLATFORM/usonic/lanemap.conf 13 | builds/port_config.ini: /var/lib/goldstone/device/$PLATFORM/usonic/port_config.ini 14 | builds/init.sh: /var/lib/goldstone/device/$PLATFORM/usonic/init.sh 15 | -------------------------------------------------------------------------------- /packages/base/any/mgmt/builds/units/gs-south-gearbox.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management South Gearbox Daemon 3 | After=gs-yang.service tai-gearbox.service 4 | Requires=gs-yang.service tai-gearbox.service 5 | PartOf=gs-mgmt-south.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start south-gearbox 11 | ExecStop=-/usr/bin/gs-mgmt.py stop south-gearbox 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-south.target 17 | Also=gs-south-gearbox-yang.service 18 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-platform-config/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7946-30xb 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-platform-config-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | changelog: Initial 13 | support: goldstone-support-group@ipinfusion.com 14 | summary: Goldstone config file for $PLATFORM 15 | files: 16 | builds/init.sh: /var/lib/goldstone/device/$PLATFORM/init.sh 17 | builds/xcvrd: /var/lib/goldstone/device/$PLATFORM/xcvrd 18 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/Makefile: -------------------------------------------------------------------------------- 1 | USONIC_IMAGES ?= ghcr.io/oopt-goldstone/usonic-cli:201904 ghcr.io/oopt-goldstone/usonic-debug:201904 docker.io/bitnami/kubectl:latest 2 | BCMD_IMAGE ?= bcmd:latest 3 | 4 | SAI_VERSION := 20220524 5 | 6 | .PHONY: bcmd 7 | 8 | all: usonic-amd64.tar libsai.so 9 | 10 | usonic-amd64.tar: Makefile bcmd 11 | for image in $(USONIC_IMAGES);\ 12 | do \ 13 | docker pull $$image; \ 14 | done 15 | docker save $(USONIC_IMAGES) $(BCMD_IMAGE) > $@ 16 | 17 | libsai.so: 18 | oras pull ghcr.io/oopt-goldstone/libsai:$(SAI_VERSION) 19 | 20 | bcmd: 21 | cd bcmd && DOCKER_BUILDKIT=1 docker build --progress plain -t $(BCMD_IMAGE) . 22 | -------------------------------------------------------------------------------- /packages/base/any/templates/goldstone-platform-config.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | PLATFORM: $BASENAME-$REVISION 3 | 4 | packages: 5 | - name: goldstone-platform-config-$PLATFORM 6 | arch: $ARCH 7 | version: 1.0.0 8 | maintainer: goldstone-nos@googlegroups.com 9 | summary: Goldstone config file for $PLATFORM 10 | files: 11 | builds/sai.profile: /var/lib/goldstone/device/$PLATFORM/usonic/sai.profile 12 | builds/config.bcm: /var/lib/goldstone/device/$PLATFORM/usonic/config.bcm 13 | builds/port_config.ini: /var/lib/goldstone/device/$PLATFORM/usonic/port_config.ini 14 | builds/blacklist.conf: /etc/modprobe.d/$PLATFORM.conf 15 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-xlate-or 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone OpenROADM Translator 7 | before-remove: $X1/packages/base/any/xlate-or/before-remove.sh 8 | depends: 9 | - k3s 10 | - gs-mgmt 11 | files: 12 | builds/gs-xlate-or-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 13 | builds/manifests: /var/lib/gs-xlate-or/k8s 14 | $X1/packages/base/any/xlate-or/builds/gs-xlate-or.service: /etc/systemd/system/ 15 | $X1/packages/base/any/xlate-or/builds/gs-xlate-or-yang.service: /etc/systemd/system/ 16 | -------------------------------------------------------------------------------- /packages/base/any/gnmi/builds/gs-north-gnmi.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management North gNMI Daemon 3 | After=gs-yang.service gs-mgmt-south.target 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-north.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start north-gnmi --manifest-dir /var/lib/gs-north-gnmi/k8s 11 | ExecStop=-/usr/bin/gs-mgmt.py stop north-gnmi --manifest-dir /var/lib/gs-north-gnmi/k8s 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-north.target 17 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/tai.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | start() { 6 | kubectl apply -f /var/lib/tai/k8s 7 | kubectl wait --for=condition=ready pod/$(kubectl get pod -l app=tai -o jsonpath='{.items[0].metadata.name}') 8 | } 9 | 10 | 11 | stop() { 12 | pod=$(kubectl get pod -l app=tai -o jsonpath='{.items[0].metadata.name}' 2>/dev/null || echo 'dummy' ) 13 | kubectl delete --ignore-not-found -f /var/lib/tai/k8s 14 | kubectl delete --ignore-not-found pods/$pod 15 | } 16 | 17 | case "$1" in 18 | start|stop) 19 | $1 20 | ;; 21 | *) 22 | echo "Usage: $0 {start|stop}" 23 | exit 1 24 | ;; 25 | esac 26 | -------------------------------------------------------------------------------- /packages/base/any/xlate-or/builds/gs-xlate-or.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Translate OpenROADM Daemon 3 | After=gs-yang.service gs-mgmt-south.target 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-xlate.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start xlate-or --manifest-dir /var/lib/gs-xlate-or/k8s 11 | ExecStop=-/usr/bin/gs-mgmt.py stop xlate-or --manifest-dir /var/lib/gs-xlate-or/k8s 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-xlate.target 17 | Also=gs-xlate-or-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/builds/tai-dpll.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | start() { 6 | kubectl apply -k /var/lib/tai-dpll/k8s 7 | kubectl wait --for=condition=ready pod/$(kubectl get pod -l app=tai-dpll -o jsonpath='{.items[0].metadata.name}') 8 | } 9 | 10 | 11 | stop() { 12 | pod=$(kubectl get pod -l app=tai-dpll -o jsonpath='{.items[0].metadata.name}' 2>/dev/null || echo 'dummy' ) 13 | kubectl delete --ignore-not-found -k /var/lib/tai-dpll/k8s 14 | kubectl delete --ignore-not-found pods/$pod 15 | } 16 | 17 | case "$1" in 18 | start|stop) 19 | $1 20 | ;; 21 | *) 22 | echo "Usage: $0 {start|stop}" 23 | exit 1 24 | ;; 25 | esac 26 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/bcmd/client.py: -------------------------------------------------------------------------------- 1 | import asyncio 2 | import argparse 3 | 4 | from grpclib.client import Channel 5 | 6 | from bcmd import bcmd_pb2 7 | from bcmd import bcmd_grpc 8 | 9 | def main(): 10 | parser = argparse.ArgumentParser() 11 | parser.add_argument("command", nargs="*") 12 | 13 | args = parser.parse_args() 14 | 15 | async def _main(): 16 | async with Channel('127.0.0.1', 50051) as ch: 17 | bcm = bcmd_grpc.BCMDStub(ch) 18 | reply = await bcm.Exec(bcmd_pb2.ExecRequest(command=" ".join(args.command))) 19 | print(reply.response) 20 | 21 | asyncio.run(_main()) 22 | 23 | 24 | if __name__ == "__main__": 25 | main() 26 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/builds/gs-xlate-oc.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Translate OpenConfig Daemon 3 | After=gs-yang.service gs-mgmt-south.target 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-xlate.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start xlate-oc --manifest-dir /var/lib/gs-xlate-oc/k8s 11 | ExecStop=-/usr/bin/gs-mgmt.py stop xlate-oc --manifest-dir /var/lib/gs-xlate-oc/k8s 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-xlate.target 17 | Also=gs-xlate-oc-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/arm64/kernels/kernel-5.4-lts-arm64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | THIS_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 3 | 4 | include $(ONL)/make/config.arm64.mk 5 | 6 | K_TARGET_DIR := $(THIS_DIR) 7 | 8 | KERNEL_DIR ?= $(X1)/sm/linux-gft 9 | 10 | kernel: 11 | $(MAKE) -C $(X1)/packages/base/any/kernels/5.4-lts/configs/arm64-all K_TARGET_DIR=$(K_TARGET_DIR) K_SOURCE_DIR=$(KERNEL_DIR) K_MBUILD_DIR=$(THIS_DIR)/linux-5.4-mbuild K_DTBS_DIR=$(THIS_DIR)/linux-5.4-dtbs $(ONL_MAKE_PARALLEL) 12 | ARCH=$(ARCH) $(ONL)/tools/scripts/kmodbuild.sh $(KERNEL_DIR) "$(wildcard $(ONL)/packages/base/any/kernels/modules/optoe.c)" onl/onl/common 13 | 14 | clean: 15 | rm -rf linux-5.4* kernel-* lib 16 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-dpll/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | VERSION: 0.4.0 3 | 4 | packages: 5 | - name: gs-tai-dpll 6 | arch: arm64 7 | version: $VERSION 8 | maintainer: goldstone-nos@googlegroups.com 9 | summary: TAI for DPLL 10 | before-remove: $__DIR__/before-remove.sh 11 | depends: 12 | - k3s 13 | - gs-tai 14 | files: 15 | builds/manifests: /var/lib/tai-dpll/k8s 16 | builds/tai-dpll.service: /etc/systemd/system/ 17 | builds/tai-dpll.sh: /usr/bin/ 18 | builds/libtai-dpll.so.$VERSION: /var/lib/tai-dpll/ 19 | links: 20 | /var/lib/tai-dpll/libtai-dpll.so: libtai-dpll.so.$VERSION 21 | /var/lib/tai-dpll/libtai.so: libtai-dpll.so 22 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7946-30xb/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | # release reset states of QSFP modules 6 | echo 0 | tee $(seq -f "/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-1/i2c-12/12-0061/module_reset_%g" 1 16) 1> /dev/null 7 | echo 0 | tee $(seq -f "/sys/devices/pci0000:00/0000:00:1f.3/i2c-0/i2c-1/i2c-13/13-0062/module_reset_%g" 17 26) 1> /dev/null 8 | 9 | systemctl disable usonic 10 | systemctl disable tai 11 | systemctl disable gs-mgmt-xlate.target 12 | systemctl enable gs-mgmt-south.target 13 | systemctl disable gs-north-gnmi 14 | systemctl enable ocnos 15 | systemctl enable gs-south-onlp 16 | systemctl enable gs-south-ocnos 17 | systemctl enable xcvrd 18 | -------------------------------------------------------------------------------- /packages/base/arm64/tai-gearbox/builds/tai-gearbox.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | start() { 6 | kubectl apply -k /var/lib/tai-gearbox/k8s 7 | kubectl wait --for=condition=ready pod/$(kubectl get pod -l app=tai-gearbox -o jsonpath='{.items[0].metadata.name}') 8 | } 9 | 10 | 11 | stop() { 12 | pod=$(kubectl get pod -l app=tai-gearbox -o jsonpath='{.items[0].metadata.name}' 2>/dev/null || echo 'dummy' ) 13 | kubectl delete --ignore-not-found -k /var/lib/tai-gearbox/k8s 14 | kubectl delete --ignore-not-found pods/$pod 15 | } 16 | 17 | case "$1" in 18 | start|stop) 19 | $1 20 | ;; 21 | *) 22 | echo "Usage: $0 {start|stop}" 23 | exit 1 24 | ;; 25 | esac 26 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-32x/goldstone-platform-config/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7716-32x 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-platform-config-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone config file for $PLATFORM 13 | files: 14 | builds/usonic: /var/lib/goldstone/device/$PLATFORM/usonic 15 | builds/tai: /var/lib/goldstone/device/$PLATFORM/tai 16 | builds/init.sh: /var/lib/goldstone/device/$PLATFORM/init.sh 17 | builds/platform.json: /var/lib/goldstone/device/$PLATFORM/platform.json 18 | -------------------------------------------------------------------------------- /packages/base/any/xlate-oc/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-xlate-oc 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone OpenConfig Translator 7 | after-install: $X1/packages/base/any/xlate-oc/after-install.sh 8 | before-remove: $X1/packages/base/any/xlate-oc/before-remove.sh 9 | depends: 10 | - k3s 11 | - gs-mgmt 12 | files: 13 | builds/gs-xlate-oc-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 14 | builds/manifests: /var/lib/gs-xlate-oc/k8s 15 | $X1/packages/base/any/xlate-oc/builds/gs-xlate-oc.service: /etc/systemd/system/ 16 | $X1/packages/base/any/xlate-oc/builds/gs-xlate-oc-yang.service: /etc/systemd/system/ 17 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/builds/gs-system-telemetry.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Goldstone Management Telemetry Daemon 3 | After=gs-yang.service gs-mgmt-south.target 4 | Requires=gs-yang.service 5 | PartOf=gs-mgmt-system.target gs-mgmt.target 6 | 7 | [Service] 8 | Type=oneshot 9 | ExecStartPre=/bin/sh -c 'while [ true ]; do ( kubectl get nodes | grep " Ready" ) && exit 0; sleep 1; done' 10 | ExecStart=/usr/bin/gs-mgmt.py start system-telemetry --manifest-dir /var/lib/gs-system-telemetry/k8s 11 | ExecStop=-/usr/bin/gs-mgmt.py stop system-telemetry --manifest-dir /var/lib/gs-system-telemetry/k8s 12 | RemainAfterExit=true 13 | StandardOutput=journal 14 | 15 | [Install] 16 | WantedBy=gs-mgmt-system.target 17 | Also=gs-system-telemetry-yang.service 18 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/bcmd/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile:1.3 2 | 3 | FROM python:3.10-slim AS builder 4 | 5 | RUN pip install --upgrade pip 6 | RUN pip install wheel grpcio-tools grpclib 7 | RUN --mount=type=bind,target=/src,rw cd /src && python -m grpc_tools.protoc -Iproto --python_out=. --python_grpc_out=. ./proto/bcmd/bcmd.proto && mkdir /dist && pip wheel . -w /dist && find /dist 8 | 9 | FROM python:3.10-slim 10 | 11 | ADD https://sonicstorage.blob.core.windows.net/packages/20190307/bcmcmd?sv=2015-04-05&sr=b&sig=sUdbU7oVbh5exbXXHVL5TDFBTWDDBASHeJ8Cp0B0TIc%3D&se=2038-05-06T22%3A34%3A19Z&sp=r /usr/bin/bcmcmd 12 | RUN chmod +x /usr/bin/bcmcmd 13 | RUN --mount=type=bind,from=builder,source=/dist,target=/dist pip install /dist/*.whl 14 | -------------------------------------------------------------------------------- /packages/base/amd64/kernels/kernel-4.19-lts-x86_64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | basename: onl-kernel-4.19-lts-x86-64-all 3 | 4 | common: 5 | arch: amd64 6 | version: 1.0.0 7 | maintainer: goldstone-nos@googlegroups.com 8 | 9 | packages: 10 | - name: $basename 11 | version: 1.0.0 12 | summary: Goldstone Kernel 4.19 for AMD64 Integrated Processor Platforms. 13 | symlinks: True 14 | 15 | files: 16 | builds/$ONL_DEBIAN_SUITE/kernel-4.19* : $$PKG_INSTALL/ 17 | builds/$ONL_DEBIAN_SUITE/linux-4.19*-mbuild : $$PKG_INSTALL/mbuilds 18 | 19 | - name: $basename-modules 20 | version: 1.0.0 21 | summary: Goldstone Kernel 4.19 LTS Kernel Modules for AMD64 Platforms 22 | 23 | files: 24 | builds/$ONL_DEBIAN_SUITE/lib: /lib 25 | -------------------------------------------------------------------------------- /packages/base/amd64/ocnos/builds/ocnos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | if [ $# != 1 ]; then 6 | echo "Usage: $0 {start|stop}" 7 | exit 1 8 | fi 9 | 10 | start() { 11 | kubectl apply -f /var/lib/ocnos/k8s 12 | for pod in $(kubectl get pod -l name=ocnos -o jsonpath='{.items[*].metadata.name}'); do 13 | kubectl wait --for=condition=ready pod/$pod --timeout 5m || error 14 | done 15 | } 16 | 17 | stop() { 18 | kubectl delete -f /var/lib/ocnos/k8s 19 | } 20 | 21 | error() { 22 | stop 23 | echo "Failed to start OcNOS service. Please get OcNOS image from L2/L3 NOS vendor and make sure it is imported." 24 | exit 1 25 | } 26 | 27 | case "$1" in 28 | start|stop) 29 | $1 30 | ;; 31 | *) 32 | esac 33 | -------------------------------------------------------------------------------- /packages/base/any/tai/builds/tai.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | start() { 6 | kubectl apply -k /var/lib/tai/k8s 7 | sleep 1 8 | kubectl wait --timeout=5m --for=condition=available deploy/tai 9 | kubectl wait --timeout=5m --for=condition=ready pod/$(kubectl get pod -l app=tai -o jsonpath='{.items[0].metadata.name}') 10 | } 11 | 12 | 13 | stop() { 14 | pod=$(kubectl get pod -l app=tai -o jsonpath='{.items[0].metadata.name}' 2>/dev/null || echo 'dummy' ) 15 | kubectl delete --ignore-not-found -k /var/lib/tai/k8s 16 | kubectl delete --ignore-not-found pods/$pod 17 | } 18 | 19 | case "$1" in 20 | start|stop) 21 | $1 22 | ;; 23 | *) 24 | echo "Usage: $0 {start|stop}" 25 | exit 1 26 | ;; 27 | esac 28 | -------------------------------------------------------------------------------- /packages/base/any/telemetry/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-system-telemetry 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone telemetry service 7 | after-install: $X1/packages/base/any/telemetry/after-install.sh 8 | before-remove: $X1/packages/base/any/telemetry/before-remove.sh 9 | depends: 10 | - k3s 11 | - gs-mgmt 12 | files: 13 | builds/gs-system-telemetry-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 14 | builds/manifests: /var/lib/gs-system-telemetry/k8s 15 | $X1/packages/base/any/telemetry/builds/gs-system-telemetry.service: /etc/systemd/system/ 16 | $X1/packages/base/any/telemetry/builds/gs-system-telemetry-yang.service: /etc/systemd/system/ 17 | -------------------------------------------------------------------------------- /packages/base/amd64/kernels/kernel-4.19-lts-x86_64-all/builds/Makefile: -------------------------------------------------------------------------------- 1 | KERNEL_BUILD_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 2 | KERNEL_ARCH := x86_64 3 | KERNEL_LTS_VERSION := 4.19 4 | KERNEL_CONFIG := x86_64-all 5 | 6 | include $(ONL)/make/config.mk 7 | 8 | export K_TARGET_DIR := $(KERNEL_BUILD_DIR)/$(ONL_DEBIAN_SUITE) 9 | 10 | kernel: setup 11 | $(MAKE) -C $(X1)/packages/base/any/kernels/$(KERNEL_LTS_VERSION)-lts/configs/$(KERNEL_CONFIG) $(ONL_MAKE_PARALLEL) 12 | cd $(K_TARGET_DIR) && ARCH=$(KERNEL_ARCH) $(ONL)/tools/scripts/kmodbuild.sh linux-*-mbuild "$(wildcard $(ONL)/packages/base/any/kernels/modules/*)" onl/onl/common 13 | 14 | clean: 15 | rm -rf $(K_TARGET_DIR) 16 | 17 | setup:: 18 | dpkg -l libelf-dev > /dev/null 2>&1 || sudo apt-get install libelf-dev 19 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/onlp/builds/x86_64_wistron_wtp_01_02_00/module/src/x86_64_wistron_wtp_01_02_00_enums.c: -------------------------------------------------------------------------------- 1 | /**************************************************************************/ /** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #include 7 | 8 | /* <--auto.start.enum(ALL).source> */ 9 | /* */ 10 | -------------------------------------------------------------------------------- /packages/base/all/initrd/loader-files/src/bin/autoboot: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # autoboot 4 | # 5 | # Goldstone Automatic boot sequence. 6 | # 7 | ############################################################ 8 | . /lib/msgs 9 | 10 | set -eux 11 | 12 | SWI=dir:data:/ 13 | swipath=$(swimount $SWI) 14 | 15 | mkdir -p /newroot 16 | umount -l /newroot 2>/dev/null || : 17 | mount --bind ${swipath} /newroot 18 | 19 | # The file /lib/boot-custom can be provided by customized builds to 20 | # add functionality before the root is switched. 21 | # 22 | if [ -f /lib/boot-custom ]; then 23 | . /lib/boot-custom 24 | fi 25 | 26 | echo "Switching rootfs" # limit 16 chars since serial buffer is not flushed 27 | kill -QUIT 1 # exec /bin/switchroot as PID 1 28 | sleep 30 29 | 30 | echo "Boot failed" 31 | exit 1 32 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7716-24sc 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-platform-config-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone config file for $PLATFORM 13 | files: 14 | builds/usonic: /var/lib/goldstone/device/$PLATFORM/usonic 15 | builds/tai: /var/lib/goldstone/device/$PLATFORM/tai 16 | builds/init.sh: /var/lib/goldstone/device/$PLATFORM/init.sh 17 | builds/platform.json: /var/lib/goldstone/device/$PLATFORM/platform.json 18 | builds/blacklist.conf: /etc/modprobe.d/$PLATFORM.conf 19 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | ARCH: amd64 3 | BASENAME: x86-64-accton-as7716-24xc 4 | REVISION: r0 5 | PLATFORM: $BASENAME-$REVISION 6 | 7 | packages: 8 | - name: goldstone-platform-config-$PLATFORM 9 | arch: $ARCH 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: Goldstone config file for $PLATFORM 13 | files: 14 | builds/usonic: /var/lib/goldstone/device/$PLATFORM/usonic 15 | builds/tai: /var/lib/goldstone/device/$PLATFORM/tai 16 | builds/init.sh: /var/lib/goldstone/device/$PLATFORM/init.sh 17 | builds/platform.json: /var/lib/goldstone/device/$PLATFORM/platform.json 18 | builds/blacklist.conf: /etc/modprobe.d/$PLATFORM.conf 19 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/patches/sonic-platform-daemons/series: -------------------------------------------------------------------------------- 1 | 0001-xcvrd-Include-tests-to-package.patch 2 | 0002-xcvrd-Add-media_interface_code-for-app-selection.patch 3 | 0003-xcvrd-Set-host_tx_ready-default-to-true.patch 4 | 0004-xcvrd-Use-TCP-to-connect-with-STATE_DB.patch 5 | 0005-xcvrd-Shorten-dom-information-update-interval.patch 6 | 0006-xcvrd-Output-CMIS-manager-log.patch 7 | 0007-xcvrd-Add-cmis_max_retries-option.patch 8 | 0008-xcvrd-Fix-the-hostlanes-to-set-datapath-init-fields.patch 9 | 0009-xcvrd-Support-appl-that-use-multiple-host-interfaces.patch 10 | 0010-xcvrd-Add-check-CMIS-configuration-log.patch 11 | 0011-xcvrd-Fix-undefined-logging-method.patch 12 | 0012-xcvrd-Fix-the-medialanes-to-set-tx-disable-fields.patch 13 | 0013-xcvrd-Fix-TRANSCEIVER_INFO-update-when-cmis-ready.patch 14 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/PKG.yml: -------------------------------------------------------------------------------- 1 | prerequisites: 2 | submodules: 3 | - { root : "${X1}/sm/sonic-buildimage-xcvrd/", path : src/sonic-swss-common } 4 | - { root : "${X1}/sm/sonic-buildimage-xcvrd/", path : src/sonic-platform-common } 5 | - { root : "${X1}/sm/sonic-buildimage-xcvrd/", path : src/sonic-platform-daemons } 6 | 7 | packages: 8 | - name: xcvrd 9 | arch: amd64 10 | version: 1.0.0 11 | maintainer: goldstone-nos@googlegroups.com 12 | summary: xcvrd 13 | before-remove: $__DIR__/before-remove.sh 14 | depends: 15 | - k3s 16 | - jq 17 | files: 18 | builds/manifests: /var/lib/xcvrd/k8s 19 | builds/xcvrd.service: /etc/systemd/system/ 20 | builds/xcvrd.sh: /usr/bin/ 21 | builds/xcvrd.tar: /var/lib/rancher/k3s/agent/images/ 22 | -------------------------------------------------------------------------------- /packages/base/amd64/xcvrd/builds/manifests/redis.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: redis-xcvrd 5 | labels: 6 | app: redis-xcvrd 7 | spec: 8 | containers: 9 | - name: redis 10 | image: redis:latest 11 | imagePullPolicy: IfNotPresent 12 | command: ["redis-server", "/etc/redis/redis.conf"] 13 | volumeMounts: 14 | - name: redis-sock 15 | mountPath: /var/run/redis/ 16 | - name: redis-server-config 17 | mountPath: /etc/redis/ 18 | ports: 19 | - containerPort: 6379 20 | volumes: 21 | - name: redis-sock 22 | hostPath: 23 | path: /run/redis-xcvrd 24 | type: Directory 25 | - name: redis-server-config 26 | configMap: 27 | name: redis-server-config-xcvrd 28 | -------------------------------------------------------------------------------- /packages/base/any/initrd/loader/APKG.yml: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # 3 | # X1 Loader Package Template 4 | # 5 | # Requires: ARCH 6 | # 7 | ############################################################ 8 | prerequisites: 9 | packages: [ "onl-loader-initrd:$ARCH" ] 10 | 11 | packages: 12 | - name: x1-loader-initrd 13 | arch: $ARCH 14 | version: 1.0.0 15 | copyright: Copyright 2018 Big Switch Networks 16 | maintainer: support@bigswitch.com 17 | changelog: Initial 18 | support: support@bigswitch.com 19 | summary: X1 Loader Initrd CPIO ($ARCH) 20 | 21 | files: 22 | builds/x1-loader-initrd-$ARCH.cpio.gz : $$PKG_INSTALL/ 23 | builds/manifest.json : $$PKG_INSTALL/ 24 | builds/zerotouch.json : $$PKG_INSTALL/ 25 | 26 | -------------------------------------------------------------------------------- /packages/base/amd64/usonic/builds/manifests/redis.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: redis 5 | labels: 6 | app: redis 7 | spec: 8 | containers: 9 | - name: redis 10 | image: ghcr.io/oopt-goldstone/usonic-debug:201904 11 | imagePullPolicy: IfNotPresent 12 | command: ["redis-server", "/etc/redis/redis.conf"] 13 | volumeMounts: 14 | - name: redis-sock 15 | mountPath: /var/run/redis/ 16 | - name: redis-server-config 17 | mountPath: /etc/redis/ 18 | ports: 19 | - containerPort: 6379 20 | volumes: 21 | - name: redis-sock 22 | hostPath: 23 | path: /var/lib/usonic/redis 24 | type: Directory 25 | - name: redis-server-config 26 | configMap: 27 | name: redis-server-config 28 | -------------------------------------------------------------------------------- /packages/base/any/tai/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: gs-tai 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: Goldstone TAI package 7 | after-install: $X1/packages/base/any/tai/after-install.sh 8 | before-remove: $X1/packages/base/any/tai/before-remove.sh 9 | depends: 10 | - k3s 11 | files: 12 | builds/tai-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 13 | builds/manifests: /var/lib/tai/k8s 14 | $X1/packages/base/any/tai/builds/manifests: /var/lib/tai/k8s/base 15 | $X1/packages/base/any/tai/builds/tai.service: /etc/systemd/system/ 16 | $X1/packages/base/any/tai/builds/tai.sh: /usr/bin/ 17 | builds/lib: /var/lib/tai/lib 18 | links: 19 | /var/lib/tai/lib/libtai.so: $DEFAULT_LIBTAI 20 | -------------------------------------------------------------------------------- /packages/base/amd64/mgmt/builds/templates/south-onlp.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-onlp 5 | spec: 6 | template: 7 | spec: 8 | containers: 9 | - name: onlp 10 | image: MGMT_IMAGE_REPO/south-onlp:IMAGE_TAG 11 | volumeMounts: 12 | - name: host-lib 13 | mountPath: /lib/x86_64-linux-gnu/libonlp-platform.so 14 | - name: host-i2c-lib 15 | mountPath: /lib/x86_64-linux-gnu/libi2c.so.0 16 | volumes: 17 | - name: host-lib 18 | hostPath: 19 | path: /lib/x86_64-linux-gnu/libonlp-platform.so 20 | - name: host-i2c-lib 21 | hostPath: 22 | path: /usr/lib/x86_64-linux-gnu/libi2c.so.0 23 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | modprobe cfp2piu 6 | 7 | echo piu1 0x6A > /sys/bus/i2c/devices/i2c-41/new_device 8 | echo piu2 0x6A > /sys/bus/i2c/devices/i2c-43/new_device 9 | echo piu3 0x6A > /sys/bus/i2c/devices/i2c-45/new_device 10 | echo piu4 0x6A > /sys/bus/i2c/devices/i2c-47/new_device 11 | echo piu5 0x6A > /sys/bus/i2c/devices/i2c-49/new_device 12 | echo piu6 0x6A > /sys/bus/i2c/devices/i2c-51/new_device 13 | echo piu7 0x6A > /sys/bus/i2c/devices/i2c-53/new_device 14 | echo piu8 0x6A > /sys/bus/i2c/devices/i2c-55/new_device 15 | 16 | systemctl disable ipmi 17 | systemctl disable ipmievd 18 | 19 | systemctl enable gs-south-onlp 20 | systemctl enable gs-south-tai 21 | systemctl enable gs-south-system 22 | systemctl enable gs-south-sonic 23 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/builds/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -eux 4 | 5 | modprobe cfp2piu 6 | 7 | echo piu1 0x6A > /sys/bus/i2c/devices/i2c-41/new_device 8 | echo piu2 0x6A > /sys/bus/i2c/devices/i2c-43/new_device 9 | echo piu3 0x6A > /sys/bus/i2c/devices/i2c-45/new_device 10 | echo piu4 0x6A > /sys/bus/i2c/devices/i2c-47/new_device 11 | echo piu5 0x6A > /sys/bus/i2c/devices/i2c-49/new_device 12 | echo piu6 0x6A > /sys/bus/i2c/devices/i2c-51/new_device 13 | echo piu7 0x6A > /sys/bus/i2c/devices/i2c-53/new_device 14 | echo piu8 0x6A > /sys/bus/i2c/devices/i2c-55/new_device 15 | 16 | systemctl disable ipmi 17 | systemctl disable ipmievd 18 | 19 | systemctl enable gs-south-onlp 20 | systemctl enable gs-south-tai 21 | systemctl enable gs-south-system 22 | systemctl enable gs-south-sonic 23 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24sc/goldstone-platform-config/builds/tai/nel/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "netif": { 3 | "attrs": { 4 | "rx-coarse-skew": [0,1,2,2], 5 | "rx-fine-skew" : [0,82,262,0], 6 | "tx-coarse-skew" : [1,0,0,0], 7 | "tx-fine-skew" : [0,30,0,55], 8 | "tx-tap" : [[-0.02734375, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.03125], 9 | [-0.02734375, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.02734375], 10 | [-0.03125, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.03125], 11 | [-0.02734375, 0.078125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.02734375]], 12 | "tx-eql-amp" : [14,14,14,14] 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/platforms/accton/x86-64/as7716-24xc/goldstone-platform-config/builds/tai/nel/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "netif": { 3 | "attrs": { 4 | "rx-coarse-skew": [0,1,2,2], 5 | "rx-fine-skew" : [0,82,262,0], 6 | "tx-coarse-skew" : [1,0,0,0], 7 | "tx-fine-skew" : [0,30,0,55], 8 | "tx-tap" : [[-0.02734375, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.03125], 9 | [-0.02734375, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.02734375], 10 | [-0.03125, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.03125], 11 | [-0.02734375, 0.078125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.02734375]], 12 | "tx-eql-amp" : [14,14,14,14] 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/platforms/wistron/x86-64/wtp-01-02-00/goldstone-platform-config/builds/tai/nel/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "netif": { 3 | "attrs": { 4 | "rx-coarse-skew": [0,1,2,2], 5 | "rx-fine-skew" : [0,82,262,0], 6 | "tx-coarse-skew" : [1,0,0,0], 7 | "tx-fine-skew" : [0,30,0,55], 8 | "tx-tap" : [[-0.02734375, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.03125], 9 | [-0.02734375, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.02734375], 10 | [-0.03125, 0.08203125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.03125], 11 | [-0.02734375, 0.078125, -0.1328125, -0.03125, 0.4453125, -0.03125, -0.1328125, 0.08203125, -0.02734375]], 12 | "tx-eql-amp" : [14,14,14,14] 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/base/arm64/kernels/kernel-5.4-lts-arm64-all/PKG.yml: -------------------------------------------------------------------------------- 1 | variables: 2 | basename: goldstone-kernel-5.4-lts-arm64-all 3 | 4 | common: 5 | arch: arm64 6 | version: 1.0.0 7 | maintainer: goldstone-nos@googlegroups.com 8 | 9 | packages: 10 | - name: $basename 11 | version: 1.0.0 12 | summary: Goldstone Kernel 5.4 for ARM64 Integrated Processor Platforms. 13 | symlinks: True 14 | 15 | files: 16 | builds/kernel-5.4* : $$PKG_INSTALL/ 17 | builds/linux-5.4*-mbuild : $$PKG_INSTALL/mbuilds 18 | builds/linux-5.4*-dtbs : $$PKG_INSTALL/dtbs 19 | 20 | changelog: Change changes changes., 21 | 22 | - name: $basename-modules 23 | version: 1.0.0 24 | summary: Goldstone Kernel 5.4 LTS Kernel Modules for ARM64 Platforms 25 | 26 | files: 27 | builds/lib: /lib 28 | 29 | changelog: Change changes changes., 30 | -------------------------------------------------------------------------------- /packages/base/arm64/mgmt/builds/templates/south-onlp.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: DaemonSet 3 | metadata: 4 | name: south-onlp 5 | spec: 6 | template: 7 | spec: 8 | hostNetwork: true 9 | containers: 10 | - name: onlp 11 | image: MGMT_IMAGE_REPO/south-onlp:IMAGE_TAG 12 | volumeMounts: 13 | - name: host-lib 14 | mountPath: /lib/aarch64-linux-gnu/libonlp-platform.so 15 | - name: host-i2c-lib 16 | mountPath: /lib/aarch64-linux-gnu/libi2c.so.0 17 | volumes: 18 | - name: host-lib 19 | hostPath: 20 | path: /lib/aarch64-linux-gnu/libonlp-platform.so 21 | - name: host-i2c-lib 22 | hostPath: 23 | path: /usr/lib/aarch64-linux-gnu/libi2c.so.0 24 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/onlp/builds/arm64_wistron_wtp_01_c1_00/module/src/arm64_wistron_wtp_01_c1_00_log.c: -------------------------------------------------------------------------------- 1 | /**************************************************************************//** 2 | * 3 | * 4 | * 5 | *****************************************************************************/ 6 | #include 7 | 8 | #include "arm64_wistron_wtp_01_c1_00_log.h" 9 | /* 10 | * arm64_wistron_wtp_01_c1_00 log struct. 11 | */ 12 | AIM_LOG_STRUCT_DEFINE( 13 | ARM64_WISTRON_WTP_01_C1_00_CONFIG_LOG_OPTIONS_DEFAULT, 14 | ARM64_WISTRON_WTP_01_C1_00_CONFIG_LOG_BITS_DEFAULT, 15 | NULL, /* Custom log map */ 16 | ARM64_WISTRON_WTP_01_C1_00_CONFIG_LOG_CUSTOM_BITS_DEFAULT 17 | ); 18 | 19 | -------------------------------------------------------------------------------- /packages/base/amd64/tai/builds/Makefile: -------------------------------------------------------------------------------- 1 | TAI_LIBS := libtai-ldc.so.0.7.0 libtai-menara.so.0.7.0 libtai-lumentum.so.0.7.0 libtai-mux.so.0.7.0 libtai-aco.so 2 | 3 | include $(X1)/make/config.amd64.mk 4 | include $(X1)/packages/base/any/tai/builds/Makefile 5 | 6 | $(LIB_DIR)/libtai-ldc.so.0.7.0: 7 | $(call download_library,libtai-ldc:0.7.0) 8 | 9 | $(LIB_DIR)/libtai-menara.so.0.7.0: 10 | $(call download_library,libtai-menara:0.7.0) 11 | 12 | $(LIB_DIR)/libtai-lumentum.so.0.7.0: 13 | $(call download_library,libtai-lumentum:0.7.0) 14 | 15 | $(LIB_DIR)/libtai-mux.so.0.7.0: 16 | $(call download_library,libtai-mux:0.7.0) 17 | 18 | $(LIB_DIR)/libtai-aco.so: 19 | oras pull -o $(LIB_DIR) ghcr.io/oopt-goldstone/libtai-aco:0.1.0@sha256:e27e154de9adcd8be8e80bf453d4bbac63179a7bddc7a1b05451c446963419c3 20 | mv $(LIB_DIR)/libtai-aco.so.0.1.0 $(LIB_DIR)/libtai-aco.so # libtai-aco.so.0.1.0 doesn't have SO name set 21 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/builds/netopeer2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | NP2=/var/lib/netopeer2/scripts 6 | export NP2_MODULE_OWNER=root 7 | export NP2_MODULE_GROUP=gsmgmt 8 | export NP2_MODULE_PERMS="664" 9 | export NP2_MODULE_DIR=/var/lib/netopeer2/yang 10 | 11 | install() { 12 | flock /run/gs-yang-lock $NP2/setup.sh 13 | flock /run/gs-yang-lock $NP2/merge_hostkey.sh 14 | flock /run/gs-yang-lock $NP2/merge_config.sh 15 | } 16 | 17 | remove() { 18 | echo remove 19 | } 20 | 21 | start() { 22 | gs-mgmt.py start north-netconf --manifest-dir /var/lib/netopeer2/k8s 23 | } 24 | 25 | stop() { 26 | gs-mgmt.py stop north-netconf --manifest-dir /var/lib/netopeer2/k8s 27 | } 28 | 29 | case "$1" in 30 | install|remove|start|stop) 31 | $1 32 | ;; 33 | *) 34 | echo "Usage: $0 {install|remove|start|stop}" 35 | exit 1 36 | ;; 37 | esac 38 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/APKG.yml: -------------------------------------------------------------------------------- 1 | packages: 2 | - name: netopeer2 3 | arch: $ARCH 4 | version: 1.0.0 5 | maintainer: goldstone-nos@googlegroups.com 6 | summary: NETCONF server 7 | after-install: $X1/packages/base/any/netopeer2/after-install.sh 8 | before-remove: $X1/packages/base/any/netopeer2/before-remove.sh 9 | depends: 10 | - gsyang 11 | - k3s 12 | - gs-mgmt 13 | files: 14 | builds/manifests: /var/lib/netopeer2/k8s 15 | builds/netopeer2-$ARCH.tar: /var/lib/rancher/k3s/agent/images/ 16 | builds/yang: /var/lib/netopeer2/yang 17 | builds/scripts: /var/lib/netopeer2/scripts 18 | $X1/packages/base/any/netopeer2/builds/gs-north-netconf.service: /etc/systemd/system/ 19 | $X1/packages/base/any/netopeer2/builds/gs-north-netconf-yang.service: /etc/systemd/system/ 20 | $X1/packages/base/any/netopeer2/builds/netopeer2.sh: /usr/bin/ 21 | -------------------------------------------------------------------------------- /packages/platforms/wistron/arm64/wtp-01-c1-00/goldstone-module/builds/cfp2/Makefile: -------------------------------------------------------------------------------- 1 | # -*- Makefile -*- 2 | ############################################################ 3 | export OUTPUT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 4 | export KERNEL := goldstone-kernel-5.4-lts-arm64-all:arm64 5 | 6 | include $(X1)/make/config.arm64.mk 7 | 8 | MODULE_DIR ?= $(OUTPUT_DIR) 9 | 10 | KBUILD ?= $(shell $(ONL)/tools/onlpm.py --find-dir $(KERNEL) mbuilds) 11 | 12 | ifndef INSTALL_MOD_PATH 13 | INSTALL_MOD_PATH := $(OUTPUT_DIR) 14 | endif 15 | 16 | all: 17 | $(RM) -r $(OUTPUT_DIR)/lib 18 | test -d $(KBUILD) 19 | $(MAKE) -C $(KBUILD) M=$(MODULE_DIR) modules 20 | $(MAKE) -C $(KBUILD) M=$(MODULE_DIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install 21 | sudo $(RM) $(shell find $(OUTPUT_DIR)/lib -name \*modules\* -type f) 22 | 23 | clean: 24 | $(MAKE) -C $(KBUILD) M=$(MODULE_DIR) clean 25 | -------------------------------------------------------------------------------- /packages/base/any/netopeer2/builds/Makefile: -------------------------------------------------------------------------------- 1 | include $(X1)/make/mgmt.mk 2 | 3 | TEMPLATE_DIR ?= $(X1)/packages/base/any/netopeer2/builds/templates 4 | 5 | IMAGE_TAG ?= $(GS_MGMT_VERSION) 6 | NETOPEER2_IMAGE ?= $(GS_MGMT_IMAGE_REPO)/north-netconf:$(IMAGE_TAG) 7 | 8 | .PHONY: yang image scripts 9 | 10 | .DEFAULT_GOAL := all 11 | 12 | all: netopeer2-$(ARCH).tar yang scripts manifests 13 | 14 | image: 15 | docker pull --platform=linux/$(ARCH) $(NETOPEER2_IMAGE) 16 | 17 | netopeer2-$(ARCH).tar: image 18 | docker save $(NETOPEER2_IMAGE) > $@ 19 | 20 | yang: image 21 | echo `pwd` 22 | $(RM) -r $@ && mkdir $@ 23 | docker run -v `pwd`/yang:/yang -w /yang --rm $(NETOPEER2_IMAGE) sh -c "cp /usr/local/share/yang/modules/netopeer2/*.yang /yang" 24 | 25 | scripts: image 26 | $(RM) -r $@ && mkdir $@ 27 | docker run -v `pwd`/scripts:/scripts -w /scripts --rm $(NETOPEER2_IMAGE) sh -c "cp /usr/local/share/netopeer2/scripts/*.sh /scripts" 28 | --------------------------------------------------------------------------------