Commit 153fa505 authored by Andy Voltz's avatar Andy Voltz Committed by Otavio Salvador

kernel-module-mcc: Add package

This module is used for communication and synchronization between MQX
applications (running on the M4) and Linux (on A5) for Freescale
Vybrid platforms.

Change-Id: Id37530cc5d5a125e0ef9e3d0f52fce068fef7dff
Signed-off-by: default avatarAndy Voltz <andy.voltz@timesys.com>
parent 9d5b271b
OE-Core uses "make modules && make modules install" for kernel modules
It also uses KERNEL_SRC to specify the kernel source tree location
This patch adds support for modules and modules_install targets, and
adds logic to pickup INSTALL_MOD_PATH and use KERNEL_SRC
Upstream-status: Pending
diff -Nuarp mcc-kmod-1.03-orig/Makefile mcc-kmod-1.03/Makefile
--- mcc-kmod-1.03-orig/Makefile 2013-08-12 14:11:56.439711957 -0400
+++ mcc-kmod-1.03/Makefile 2013-08-12 14:16:03.472603053 -0400
@@ -3,17 +3,19 @@ mcc-y = mcc_linux.o mcc_shm_linux.o mcc_
PWD := $(shell pwd)
-EXTRA_CFLAGS += -I$(KERNELDIR)/include -Wno-format
+EXTRA_CFLAGS += -I$(KERNEL_SRC)/include -Wno-format
-all:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+DESTDIR ?= $(INSTALL_MOD_PATH)
-install: all
- $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install INSTALL_MOD_PATH=$(DESTDIR)
+modules all:
+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules
+
+modules_install install: all
+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install INSTALL_MOD_PATH=$(DESTDIR)
@echo Copying mcc headers to toolchain
mkdir -p $(DESTDIR)/usr/include/linux
cp -f {mcc_linux.h,mcc_common.h,mcc_config.h} $(DESTDIR)/usr/include/linux/
clean:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+ $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean
# Copyright (C) 2013 Timesys Corporation
SUMMARY = "MCC KERNEL MODULE"
DESCRIPTION = "Timesys Multicore communication kernel module"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c8959abcbbe4d6676c58eab9354019e6"
inherit module
SRC_URI = "http://repository.timesys.com/buildsources/m/mcc-kmod/mcc-kmod-${PV}/mcc-kmod-${PV}.tar.bz2 \
file://mcc-kmod-oe-module-makefile.patch"
SRC_URI[md5sum] = "046b0a86d70b9e3424efc86f442bc335"
SRC_URI[sha256sum] = "44ed7f812625ef764d62ff0871784ceb155ef86df8932e91830f9222adbf3a9e"
S = "${WORKDIR}/mcc-kmod-${PV}"
COMPATIBLE_MACHINE = "(vf60)"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment