mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
new package: add package 'marvell-libbmm'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
615f455710
commit
d33cf0ad4a
33
packages/devel/marvell-libbmm/build
Executable file
33
packages/devel/marvell-libbmm/build
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
make -f Makefile_general libbmm.so.0u
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/lib
|
||||
cp -PR libbmm.so* $SYSROOT_PREFIX/usr/lib
|
||||
|
||||
mkdir -p $SYSROOT_PREFIX/usr/include
|
||||
cp -PR bmm_lib.h $SYSROOT_PREFIX/usr/include
|
29
packages/devel/marvell-libbmm/install
Executable file
29
packages/devel/marvell-libbmm/install
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -P $PKG_BUILD/libbmm.so* $INSTALL/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/lib/udev/rules.d
|
||||
cp -PR $PKG_BUILD/etc/udev/rules.d/*.rules $INSTALL/lib/udev/rules.d
|
36
packages/devel/marvell-libbmm/meta
Normal file
36
packages/devel/marvell-libbmm/meta
Normal file
@ -0,0 +1,36 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="marvell-libbmm"
|
||||
PKG_VERSION="0.2.0"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="free to use"
|
||||
PKG_SITE="http://www.marvell.com"
|
||||
PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||
PKG_DEPENDS=""
|
||||
PKG_BUILD_DEPENDS="toolchain"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="system"
|
||||
PKG_SHORTDESC="marvell-libbmm: Allocate, manage and share large block of physical continuous memory."
|
||||
PKG_LONGDESC="marvell-libbmm: Allocate, manage and share large block of physical continuous memory."
|
||||
PKG_IS_ADDON="no"
|
||||
|
||||
PKG_AUTORECONF="no"
|
@ -0,0 +1,27 @@
|
||||
diff -Naur libbmm-0.2.0/Makefile_general libbmm-0.2.0.patch/Makefile_general
|
||||
--- libbmm-0.2.0/Makefile_general 2011-03-07 18:48:46.000000000 +0100
|
||||
+++ libbmm-0.2.0.patch/Makefile_general 2012-12-24 20:19:47.791960702 +0100
|
||||
@@ -30,20 +30,20 @@
|
||||
uninstall-host uninstall-target
|
||||
|
||||
.c.o:
|
||||
- ${CC} -fPIC -o $@ -c $<
|
||||
+ ${CC} -fPIC ${CFLAGS} -o $@ -c $<
|
||||
|
||||
all: compile install-host install-target
|
||||
|
||||
compile: bmm_test libbmm.so libbmm.a
|
||||
|
||||
bmm_test: libbmm.so.$(ABI_VERSION) ${bmm_test_obj}
|
||||
- ${CC} -o $@ ${bmm_test_obj} -L. -lbmm
|
||||
+ ${CC} ${LDLAGS} -o $@ ${bmm_test_obj} -L. -lbmm
|
||||
|
||||
libbmm.a: ${bmm_lib_obj}
|
||||
${AR} -rcs $@ ${bmm_lib_obj}
|
||||
|
||||
libbmm.so.$(ABI_VERSION): ${bmm_lib_obj}
|
||||
- ${CC} -g -s -shared -Wl,-soname,$@ -o $@.$(ABI_REVISION) ${bmm_lib_obj}
|
||||
+ ${CC} -g -s ${LDFLAGS} -shared -Wl,-soname,$@ -o $@.$(ABI_REVISION) ${bmm_lib_obj}
|
||||
ln -s $@.$(ABI_REVISION) $@
|
||||
ln -s $@.$(ABI_REVISION) libbmm.so
|
||||
|
Loading…
x
Reference in New Issue
Block a user