mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-28 02:34:59 +00:00
Skeleton OOM_shim package for OCP Demo
This commit is contained in:
1
packages/base/amd64/oom_shim/Makefile
Normal file
1
packages/base/amd64/oom_shim/Makefile
Normal file
@@ -0,0 +1 @@
|
||||
include $(ONL)/make/pkg.mk
|
||||
2
packages/base/amd64/oom_shim/PKG.yml
Normal file
2
packages/base/amd64/oom_shim/PKG.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
!include $ONL/packages/base/any/oom_shim/APKG.yml ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu
|
||||
|
||||
3
packages/base/amd64/oom_shim/builds/Makefile
Normal file
3
packages/base/amd64/oom_shim/builds/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
include $(ONL)/make/config.amd64.mk
|
||||
include $(ONL)/packages/base/any/oom_shim/builds/Makefile
|
||||
|
||||
32
packages/base/any/oom_shim/APKG.yml
Normal file
32
packages/base/any/oom_shim/APKG.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
############################################################
|
||||
#
|
||||
# OOM SHIM
|
||||
#
|
||||
# Requires: ARCH, TOOLCHAIN
|
||||
#
|
||||
############################################################
|
||||
variables:
|
||||
libdir: /lib/${TOOLCHAIN}
|
||||
|
||||
common:
|
||||
arch: $ARCH
|
||||
version: 1.0.0
|
||||
copyright: Copyright 2016 Big Switch Networks
|
||||
maintainer: support@bigswitch.com
|
||||
|
||||
|
||||
|
||||
packages:
|
||||
- name: oom_shim
|
||||
version: 1.0.0
|
||||
summary: Open Optical Module Wrapper library around ONLP
|
||||
provides: [ oom_shim ]
|
||||
|
||||
files:
|
||||
builds/$BUILD_DIR/${TOOLCHAIN}/liboom_shim.so : $libdir/
|
||||
|
||||
changelog: Initial code for 2016 OCP Demo
|
||||
|
||||
|
||||
|
||||
|
||||
9
packages/base/any/oom_shim/builds/Makefile
Normal file
9
packages/base/any/oom_shim/builds/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
include $(ONL)/make/any.mk
|
||||
|
||||
|
||||
liboom_shim.so:
|
||||
@$(CC) -o liboom_shim.so -shared -PIC liboom_shim.c
|
||||
|
||||
.PHONY: deb
|
||||
deb:
|
||||
$(MAKE) -C deb
|
||||
7
packages/base/any/oom_shim/src/oom_shim.c
Normal file
7
packages/base/any/oom_shim/src/oom_shim.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int test_func(int argc)
|
||||
{
|
||||
|
||||
printf("Looks like it works...\n");
|
||||
}
|
||||
Reference in New Issue
Block a user