From patchwork Wed Jan 15 09:25:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 23228 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CAC0C206A0 for ; Wed, 15 Jan 2014 09:25:30 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 19sf1229670ykq.2 for ; Wed, 15 Jan 2014 01:25:29 -0800 (PST) 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:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=QMTpXerCOkBj9NROJbXEY2iIUTEDMFaAaQ++5DzosAA=; b=ltxZg6qOvYBVOCaBpGAzQi0ZB2w6vknD5Xayh+ayH7Jlc9eQOlYcfpX5RseNZMCLKD 6KViovA9nuz7tCVzTEtwcAo2LFsGXBowvtWYctOL7Dqcx3AJotHYNm3m6sak2zg9loZW IcXglZ2A/q8C3ldLxCQtFxaT6SZ21naoybMf3pgw31sbBcrhbHa77/yrLQBb8sBYbeht 5YY+inJSFcZWnZf0ZbFyqGu2vFgiwBDSBaliVxRYzlmXwV+0673uaxqv8X2vLFBhiNnM vkANKcsvd75di1YWzPhP3dx8j1RO8xfaGBsJlSiHFrnLJLVzmgEu/MFS9CE/6M+kpsMW rFJA== X-Gm-Message-State: ALoCoQk+jDUN+mevF8tyBUOYoX9uWIPM39N7qfZIbmFBMuDHUIH/34xHhG+a5deyVsh5ivHXUK1z X-Received: by 10.58.171.135 with SMTP id au7mr512404vec.22.1389777929780; Wed, 15 Jan 2014 01:25:29 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.105 with SMTP id g9ls305451qej.34.gmail; Wed, 15 Jan 2014 01:25:29 -0800 (PST) X-Received: by 10.58.94.195 with SMTP id de3mr567370veb.39.1389777929663; Wed, 15 Jan 2014 01:25:29 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id q19si1405279vea.25.2014.01.15.01.25.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 01:25:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jw12so307059veb.31 for ; Wed, 15 Jan 2014 01:25:29 -0800 (PST) X-Received: by 10.58.80.103 with SMTP id q7mr630842vex.33.1389777929577; Wed, 15 Jan 2014 01:25:29 -0800 (PST) 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.59.13.131 with SMTP id ey3csp260066ved; Wed, 15 Jan 2014 01:25:28 -0800 (PST) X-Received: by 10.68.251.133 with SMTP id zk5mr1344536pbc.69.1389777928437; Wed, 15 Jan 2014 01:25:28 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id tr4si3131526pab.150.2014.01.15.01.25.27 for ; Wed, 15 Jan 2014 01:25:28 -0800 (PST) Received-SPF: pass (google.com: domain of openembedded-core-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 CA5466E362; Wed, 15 Jan 2014 09:25:25 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by mail.openembedded.org (Postfix) with ESMTP id E4A276BF4E for ; Wed, 15 Jan 2014 09:25:21 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id hi8so410683wib.9 for ; Wed, 15 Jan 2014 01:25:22 -0800 (PST) X-Received: by 10.194.178.135 with SMTP id cy7mr1096093wjc.21.1389777922581; Wed, 15 Jan 2014 01:25:22 -0800 (PST) Received: from localhost ([2001:610:612:0:5e51:4fff:fec8:7c15]) by mx.google.com with ESMTPSA id ot9sm2715439wjc.0.2014.01.15.01.25.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2014 01:25:22 -0800 (PST) From: Koen Kooi To: openembedded-core@lists.openembedded.org Date: Wed, 15 Jan 2014 10:25:20 +0100 Message-Id: <1389777920-28884-1-git-send-email-koen.kooi@linaro.org> X-Mailer: git-send-email 1.8.4.2 Cc: Koen Kooi Subject: [OE-core] [RFC][PATCHv2] grub-efi: add git version X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: koen.kooi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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 This allows building both non-EFI (via grub_git.bb) and EFI versions of grub for platforms like i586 and armv7a which are usually non-EFI. Signed-off-by: Koen Kooi --- meta/recipes-bsp/grub/grub-efi_git.bb | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 meta/recipes-bsp/grub/grub-efi_git.bb diff --git a/meta/recipes-bsp/grub/grub-efi_git.bb b/meta/recipes-bsp/grub/grub-efi_git.bb new file mode 100644 index 0000000..e8f859e --- /dev/null +++ b/meta/recipes-bsp/grub/grub-efi_git.bb @@ -0,0 +1,72 @@ +SUMMARY = "GRUB2 is the next-generation GRand Unified Bootloader" + +DESCRIPTION = "GRUB2 is the next generaion of a GPLed bootloader \ +intended to unify bootloading across x86 operating systems. In \ +addition to loading the Linux kernel, it implements the Multiboot \ +standard, which allows for flexible loading of multiple boot images." + +HOMEPAGE = "http://www.gnu.org/software/grub/" +SECTION = "bootloaders" + +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" + +DEPENDS = "autogen-native flex-native bison-native xz freetype" + +DEFAULT_PREFERENCE = "-1" +DEFAULT_PREFERENCE_arm = "1" + +PV = "2.00+${SRCPV}" +SRCREV = "0776112c5311196889a15058a3b1be4c81ba5e05" +SRC_URI = "git://git.savannah.gnu.org/grub.git \ + " + +S = "${WORKDIR}/git" + +COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' + +inherit autotools +inherit gettext + +PACKAGECONFIG ??= "" +PACKAGECONFIG[grub-mount] = "--enable-grub-mount,--disable-grub-mount,fuse" +PACKAGECONFIG[device-mapper] = "--enable-device-mapper,--disable-device-mapper,lvm2" + +# configure.ac has code to set this automagically from the target tuple +# but the OE freeform one (core2-foo-bar-linux) don't work with that. + +GRUBPLATFORM = "efi" + +EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} --disable-grub-mkfont --program-prefix="" \ + --enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no" + +do_configure_prepend() { + ( cd ${S} + ${S}/autogen.sh ) +} + +do_install_class-native() { + install -d ${D}${bindir} + install -m 755 grub-mkimage ${D}${bindir} +} + +do_deploy() { + # Search for the grub.cfg on the local boot media by using the + # built in cfg file provided via this recipe + grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \ + -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \ + boot linux ext2 fat serial part_msdos part_gpt normal efi_gop iso9660 search + install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR} +} + +do_deploy_class-native() { + : +} + +addtask deploy after do_install before do_build + +RDEPENDS_${PN} = "diffutils freetype" +FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug" + +INSANE_SKIP_${PN} = "arch" +INSANE_SKIP_${PN}-dbg = "arch"