Skeleton OOM_shim package for OCP Demo

This commit is contained in:
Rob Sherwood
2016-02-05 10:02:01 -08:00
parent fc8d40d190
commit 0864c30d4d
6 changed files with 54 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,2 @@
!include $ONL/packages/base/any/oom_shim/APKG.yml ARCH=amd64 TOOLCHAIN=x86_64-linux-gnu

View File

@@ -0,0 +1,3 @@
include $(ONL)/make/config.amd64.mk
include $(ONL)/packages/base/any/oom_shim/builds/Makefile

View 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

View 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

View File

@@ -0,0 +1,7 @@
#include <stdio.h>
int test_func(int argc)
{
printf("Looks like it works...\n");
}