From patchwork Thu Jun 4 11:08:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kuscsik X-Patchwork-Id: 49522 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3F6DA2154F for ; Thu, 4 Jun 2015 11:08:40 +0000 (UTC) Received: by wgez8 with SMTP id z8sf9368938wge.2 for ; Thu, 04 Jun 2015 04:08:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=KGaGEtNDarjEiPOCy56LICuaJG2wkmd4qXZNpS47sWQ=; b=MPIaXYP4gy4GE8KMQqTYSvRz9y2ECyTClZbVw/495rIS8cSEHaFJR9SGOw1hXH+Qw1 sjpCLYTe6c3F+ZLrpDRGtCxmNRYILK97mdAvidAO0FqQjE0vUdXgvQ6yJqptNcOxrnJ4 tyonzdIOMxehs6HqTV+Jlc5wXkfYYwpYsDH4CHVRa9WVc1dE6ffVz4yMmvpKN/sJpYug nCU8VUk1ACPbT/nkQipOeShsaNPc4V/lqInIHbwAtRlyXfAE0hTMaGwFyvF8wmJVN4fK c47bPMWrHVWT4cWjONkFs3q5Fu4LDIZguqEFIdc+RAk59AxPnA3+D78CHeqWOSYcvtcU MzfA== X-Gm-Message-State: ALoCoQnmDKeSpXAVG+b8VcsonLL0rAXdJ+rM/WjWr8Tfbe3oT/WRX8+T4xRdPqrr57CWGtWixADW X-Received: by 10.112.53.102 with SMTP id a6mr35186605lbp.16.1433416119433; Thu, 04 Jun 2015 04:08:39 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.181.34 with SMTP id dt2ls176894lac.14.gmail; Thu, 04 Jun 2015 04:08:39 -0700 (PDT) X-Received: by 10.152.42.230 with SMTP id r6mr4805973lal.30.1433416119279; Thu, 04 Jun 2015 04:08:39 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id qe6si1548791lbb.7.2015.06.04.04.08.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jun 2015 04:08:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by laew7 with SMTP id w7so29189196lae.1 for ; Thu, 04 Jun 2015 04:08:39 -0700 (PDT) X-Received: by 10.152.206.75 with SMTP id lm11mr27046968lac.41.1433416119142; Thu, 04 Jun 2015 04:08:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp517292lbb; Thu, 4 Jun 2015 04:08:37 -0700 (PDT) X-Received: by 10.66.123.81 with SMTP id ly17mr68830440pab.31.1433416116875; Thu, 04 Jun 2015 04:08:36 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id pb3si5383723pdb.145.2015.06.04.04.08.35; Thu, 04 Jun 2015 04:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 9701775745; Thu, 4 Jun 2015 11:08:25 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mail.openembedded.org (Postfix) with ESMTP id BD8C975733 for ; Thu, 4 Jun 2015 11:08:21 +0000 (UTC) Received: by wibdt2 with SMTP id dt2so45168256wib.1 for ; Thu, 04 Jun 2015 04:08:22 -0700 (PDT) X-Received: by 10.180.88.72 with SMTP id be8mr6823562wib.42.1433416102585; Thu, 04 Jun 2015 04:08:22 -0700 (PDT) Received: from static.71.106.40.188.clients.your-server.de (static.71.106.40.188.clients.your-server.de. [188.40.106.71]) by mx.google.com with ESMTPSA id dz4sm30737858wib.17.2015.06.04.04.08.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jun 2015 04:08:22 -0700 (PDT) From: Zoltan Kuscsik To: openembedded-devel@lists.openembedded.org Date: Thu, 4 Jun 2015 13:08:09 +0200 Message-Id: <1433416089-1024-1-git-send-email-zoltan.kuscsik@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [oe] [meta-browser][PATCH] chromium, cef: fetch chromium source from git X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zoltan.kuscsik@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Updated recipe to fetch Chromium from git. LASTCHANGE file is now created using the proper gclient hook. Change-Id: Ie1790abec002a0dd39c8d0aae3d03f5ebe6f46aa Signed-off-by: Zoltan Kuscsik --- .../cef3/01_get_svn_version_from_LASTCHANGE.patch | 32 ---------- recipes-browser/chromium/cef3_280796.bb | 73 +++++++++++++++------- 2 files changed, 51 insertions(+), 54 deletions(-) delete mode 100644 recipes-browser/chromium/cef3/01_get_svn_version_from_LASTCHANGE.patch diff --git a/recipes-browser/chromium/cef3/01_get_svn_version_from_LASTCHANGE.patch b/recipes-browser/chromium/cef3/01_get_svn_version_from_LASTCHANGE.patch deleted file mode 100644 index 9b14429..0000000 --- a/recipes-browser/chromium/cef3/01_get_svn_version_from_LASTCHANGE.patch +++ /dev/null @@ -1,32 +0,0 @@ -Fetch the revision from LASTCHANGE file programmatically - -Upstream-Status: Pending - -Signed-off-by: Zoltan Kuscsik -Signed-off-by: Khem Raj - -diff --git a/cef/tools/make_version_header.py b/cef/tools/make_version_header.py -index 84d49f5..395c2cf 100644 ---- a/cef/tools/make_version_header.py -+++ b/cef/tools/make_version_header.py -@@ -64,6 +64,8 @@ def write_svn_header(header, chrome_version, cef_version, cpp_header_dir): - revision = svn.get_revision() - elif git.is_checkout('.'): - revision = git.get_svn_revision() -+ elif os.path.isfile("../build/util/LASTCHANGE"): -+ revision = open("../build/util/LASTCHANGE").read().split("=")[1].strip() - else: - raise Exception('Not a valid checkout') - -diff --git a/cef/tools/revision.py b/cef/tools/revision.py -index 1d94602..eb89e3b 100644 ---- a/cef/tools/revision.py -+++ b/cef/tools/revision.py -@@ -16,6 +16,8 @@ if os.path.exists(os.path.join('.', '.svn')): - sys.stdout.write(svn.get_revision()) - elif os.path.exists(os.path.join('.', '.git')): - sys.stdout.write(git.get_svn_revision()) -+elif os.path.isfile("../build/util/LASTCHANGE"): -+ revision = open("../build/util/LASTCHANGE").read().split("=")[1].strip() - else: - raise Exception('Not a valid checkout') diff --git a/recipes-browser/chromium/cef3_280796.bb b/recipes-browser/chromium/cef3_280796.bb index 9a9efe5..a3a4eca 100644 --- a/recipes-browser/chromium/cef3_280796.bb +++ b/recipes-browser/chromium/cef3_280796.bb @@ -7,21 +7,22 @@ RDEPENDS_${PN} += "pango cairo fontconfig pciutils pulseaudio freetype fontconfi SRCREV_tools = "99bcb0e676eb396bcf8e1af3903aa4b578aeeee0" SRCREV_cef = "bbad53dfca9f98dddcb31a590410fece0a4f0234" SRCREV_egl = "a5b81b7617ba6757802b9b5f8c950034d5f961ec" -SRCREV_FORMAT = "cef_egl_tools" +SRCREV_FORMAT = "cef_egl" -SRC_URI = "http://people.linaro.org/~zoltan.kuscsik/chromium-browser/chromium_rev_${PV}.tar.xz \ - git://github.com/kuscsik/chromiumembedded.git;protocol=https;destsuffix=src/cef;branch=aura;name=cef \ - git://github.com/kuscsik/ozone-egl.git;protocol=https;destsuffix=src/ui/ozone/platform/egl;branch=master;name=egl \ - git://chromium.googlesource.com/chromium/tools/depot_tools.git;protocol=https;destsuffix=depot_tools;branch=master;name=tools \ - file://01_get_svn_version_from_LASTCHANGE.patch \ - file://cef-simple \ - " -SRC_URI[md5sum] = "9efbb50283b731042e62b9bd5e312b2f" -SRC_URI[sha256sum] = "f608e97dadf6ea4d885b24fd876896d46840fa39bf743ea2025075aee9fb348d" +SRC_URI = "git://chromium.googlesource.com/chromium/tools/depot_tools.git;protocol=https;destsuffix=depot_tools;branch=master;name=tools \ + git://github.com/kuscsik/chromiumembedded.git;protocol=https;destsuffix=${S}/src/cef;branch=aura;name=cef \ + git://github.com/kuscsik/ozone-egl.git;protocol=https;destsuffix=${S}/src/ui/ozone/platform/egl;branch=master;name=egl\ + file://cef-simple\ + " -S = "${WORKDIR}/chromium_rev_${PV}" +export CHROMIUM_SRC_GIT_URL="https://chromium.googlesource.com/chromium/src" +export CHROMIUM_SRC_GIT_COMMIT="e800fe7470fa87dc1ca5b148a7c2c41f603fdcbd" -do_fetch[vardeps] += "SRCREV_FORMAT SRCREV_cef SRCREV_egl SRCREV_tools" +S = "${WORKDIR}/chromium_rev_${PV}/" + +B = "${S}/src/" + +do_fetch[vardeps] += "SRCREV_FORMAT SRCREV_cef SRCREV_egl" GYP_ARCH_DEFINES_armv7a = " target_arch=arm arm_float_abi=hard" GYP_ARCH_DEFINES_i586 = " target_arch=ia32" @@ -30,22 +31,50 @@ export GYP_GENERATORS="ninja" export BUILD_TARGET_ARCH="${TARGET_ARCH}" export GYP_DEFINES="${GYP_ARCH_DEFINES} release_extra_cflags='-Wno-error=unused-local-typedefs' sysroot=''" +do_fetch_chromium_source_from_git() { + cd ${S} + export PATH=${WORKDIR}/depot_tools:"$PATH" + + # Note: --deps-file needs to set to .DEPS.git for syncing to old + # chromium versions + gclient config ${CHROMIUM_SRC_GIT_URL} --deps-file=".DEPS.git" + + # Runhooks is disabled. Running the hooks will trigger the + # gyp_chromium command replaced with cef_create_projects.sh by + # cef3. + + gclient sync -f --nohooks --revision src@${CHROMIUM_SRC_GIT_COMMIT} + + # We need the lastchange hook to generate the LASTCHANGE revision info + # file. + + python src/build/util/lastchange.py -o src/build/util/LASTCHANGE +} + +addtask fetch_chromium_source_from_git after do_patch before do_configure + do_configure_append() { - export PATH=${WORKDIR}/depot_tools:"$PATH" - # End of LD Workaround - #----------------------- - # Configure cef - #------------------------ - cd cef - ./cef_create_projects.sh -I ${BUILD_TARGET_ARCH}_ozone.gypi --depth ../ - cd - + export PATH=${WORKDIR}/depot_tools:"$PATH" + # End of LD Workaround + #----------------------- + # Configure cef + #------------------------ + cd ${S}/src/cef + + # Fatal linker warnings need to be disalbed to avoid linker issu + # with GCC 4.9: + # http://lists.openembedded.org/pipermail/openembedded-core/2014-August/095947.html + + ./cef_create_projects.sh -I ${BUILD_TARGET_ARCH}_ozone.gypi --depth ../ -Ddisable_fatal_linker_warnings= + cd - } # Workaround to disable qa_configure do_qa_configure() { - echo "do_qa_configure" + echo "do_qa_configure" } do_compile() { - ninja -C out/${CHROMIUM_BUILD_TYPE} cefsimple + cd ${S}/src + ninja -C out/${CHROMIUM_BUILD_TYPE} cefsimple }