From 839ad8ffbac907b508453421c2990e276687dac9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Wed, 21 May 2014 18:07:49 +0200 Subject: [PATCH] Add package meta MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin THIERRY Signed-off-by: Ronan Le Martret Change-Id: Iae9225d0813600e18be4fa83b772f08b9d467942 --- .../images/tizen-common-core-image-minimal.bb | 3 +- recipes-tizen/meta/meta-extraconf.inc | 0 recipes-tizen/meta/meta.inc | 89 ++++++++++++++++++++++ recipes-tizen/meta/meta_git.bb | 10 +++ 4 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 recipes-tizen/meta/meta-extraconf.inc create mode 100644 recipes-tizen/meta/meta.inc create mode 100644 recipes-tizen/meta/meta_git.bb diff --git a/recipes-image/images/tizen-common-core-image-minimal.bb b/recipes-image/images/tizen-common-core-image-minimal.bb index 0e6a8f2..cf50f9b 100644 --- a/recipes-image/images/tizen-common-core-image-minimal.bb +++ b/recipes-image/images/tizen-common-core-image-minimal.bb @@ -17,4 +17,5 @@ DEPENDS += " tar-replacement-native " IMAGE_INSTALL += "connman" IMAGE_INSTALL += "weston-common" IMAGE_INSTALL += "mesa-driver-i965" -#IMAGE_INSTALL += "crosswalk" \ No newline at end of file +IMAGE_INSTALL += "meta" +#IMAGE_INSTALL += "crosswalk" diff --git a/recipes-tizen/meta/meta-extraconf.inc b/recipes-tizen/meta/meta-extraconf.inc new file mode 100644 index 0000000..e69de29 diff --git a/recipes-tizen/meta/meta.inc b/recipes-tizen/meta/meta.inc new file mode 100644 index 0000000..4586016 --- /dev/null +++ b/recipes-tizen/meta/meta.inc @@ -0,0 +1,89 @@ +DESCRIPTION = "Common Meta Data" +HOMEPAGE = "http://nohomepage.org" +SECTION = "Base/Configuration" +LICENSE = "GPL-2.0" + +SRC_URI = "" + +S = "${WORKDIR}/git" + +inherit autotools-brokensep + +BBCLASSEXTEND = "" +PROVIDES = "" + +#PROVIDES by meta-common + + +RDEPENDS = "" + +DEPENDS = "" + +do_prep() { + cd ${S} + chmod -Rf a+rX,u+w,g-w,o-w ${S} + #setup -q + + +} +do_patch_append() { + bb.build.exec_func('do_prep', d) +} + +do_configure() { +} + +do_compile() { + cd ${S} + LANG=C + export LANG + unset DISPLAY + CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; + CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; + FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; + LD_AS_NEEDED=1; export LD_AS_NEEDED ; + + make + + + +} + +do_install() { + echo export RPM_BUILD_ROOT=${D} + cd ${S} + LANG=C + export LANG + unset DISPLAY + rm -rf ${D} + mkdir -p ${D} + + + oe_runmake \ + DESTDIR=${D} \ + INSTALL_ROOT=${D} \ + BINDIR=${prefix}/bin \ + install + rm -f ${D}${infodir}/dir + find ${D} -regex ".*\.la$" | xargs rm -f -- + find ${D} -regex ".*\.a$" | xargs rm -f -- + + + +} + +PACKAGES += " meta-common " + +meta-common_files = "" +meta-common_files += "${prefix}/share/package-groups/common/*.yaml" +meta-common_files += "${prefix}/share/image-configurations/common/*.yaml" +meta-common_files += "${prefix}/share/image-configurations/common/configs/*.yaml" +meta-common_files += "${prefix}/share/image-configurations/common/partitions" +meta-common_files += "${prefix}/share/image-configurations/common/scripts" + +FILES_${PN} = "${meta-common_files}" + +PKG_meta-common= "meta-common" + +require meta-extraconf.inc + diff --git a/recipes-tizen/meta/meta_git.bb b/recipes-tizen/meta/meta_git.bb new file mode 100644 index 0000000..c087003 --- /dev/null +++ b/recipes-tizen/meta/meta_git.bb @@ -0,0 +1,10 @@ +require meta.inc + +PRIORITY = "10" + +LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI += "git://review.tizen.org/profile/common/meta;tag=ff5e0c3793c1f59857013a0f4693a6662a30ea9d;nobranch=1" + +BBCLASSEXTEND += " native " + -- 2.7.4