From patchwork Wed Jan 15 09:16:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 23227 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1F44F206A0 for ; Wed, 15 Jan 2014 09:16:31 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kp14sf1827117pab.2 for ; Wed, 15 Jan 2014 01:16:30 -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=f5jV0eHauKrLKyMgaugbvk5KktNt5YRzGIFGchj/uAE=; b=SHysDEE5uTY9/Me3NngArIh8vd0HdQp58baET0b3LGi8HFYFmk1lpztu8MldMmI2sa RaMZepR4seCJGlVgXNyY71N9NlTKHJgjcSjJZrpzg9qSIgkZFs0k7BI/0fs9LD98O668 KePgoHYe4LHLsBfbeKv2h9EmSpwRJipDdtKZTX0zmUv7pL4/lDjZX52J2rzGito7HRP0 BUWGFxIoVE/ACtOtLXZtsl8guBWg/1lE1/IW1A/3luYcQBfU1vBkvMiNelZzJXGTxP3c 8RTA2AdT8XZ8EmscKFzwUMNON5da7bzh905wYF/E3aAk/ruFv6ClfH7cBGA7ALUs/bbu 9Jpw== X-Gm-Message-State: ALoCoQkVcJDtwlPVDBKt24MVzNeALcJJH4w/+uIalUgeeJtVuq3zYzTK3OgpUlE12k1VW5yYoERl X-Received: by 10.66.136.166 with SMTP id qb6mr369185pab.44.1389777390328; Wed, 15 Jan 2014 01:16:30 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.75.105 with SMTP id b9ls413371qew.33.gmail; Wed, 15 Jan 2014 01:16:30 -0800 (PST) X-Received: by 10.58.85.133 with SMTP id h5mr977963vez.4.1389777390236; Wed, 15 Jan 2014 01:16:30 -0800 (PST) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id rl1si1387646vcb.74.2014.01.15.01.16.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 01:16:30 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.178 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.178; Received: by mail-ve0-f178.google.com with SMTP id oz11so303352veb.37 for ; Wed, 15 Jan 2014 01:16:30 -0800 (PST) X-Received: by 10.53.13.44 with SMTP id ev12mr648580vdd.17.1389777390136; Wed, 15 Jan 2014 01:16:30 -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 ey3csp259664ved; Wed, 15 Jan 2014 01:16:29 -0800 (PST) X-Received: by 10.68.172.37 with SMTP id az5mr1247079pbc.139.1389777389163; Wed, 15 Jan 2014 01:16:29 -0800 (PST) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id g5si3089187pav.259.2014.01.15.01.16.28 for ; Wed, 15 Jan 2014 01:16:29 -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 BF9736DC3D; Wed, 15 Jan 2014 09:16:26 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by mail.openembedded.org (Postfix) with ESMTP id B2BA46B4F7 for ; Wed, 15 Jan 2014 09:16:25 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id q59so1506120wes.11 for ; Wed, 15 Jan 2014 01:16:26 -0800 (PST) X-Received: by 10.180.24.134 with SMTP id u6mr1004794wif.53.1389777385646; Wed, 15 Jan 2014 01:16:25 -0800 (PST) Received: from localhost ([2001:610:612:0:5e51:4fff:fec8:7c15]) by mx.google.com with ESMTPSA id eh7sm27376638wic.2.2014.01.15.01.16.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2014 01:16:24 -0800 (PST) From: Koen Kooi To: openembedded-core@lists.openembedded.org Date: Wed, 15 Jan 2014 10:16:22 +0100 Message-Id: <1389777382-24374-1-git-send-email-koen.kooi@linaro.org> X-Mailer: git-send-email 1.8.4.2 Cc: Koen Kooi Subject: [OE-core] [RFC][PATCH] 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.178 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 | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 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..339d5ec --- /dev/null +++ b/meta/recipes-bsp/grub/grub-efi_git.bb @@ -0,0 +1,58 @@ +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 \ + file://40_custom \ + " + +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_append () { + install -d ${D}${sysconfdir}/grub.d + install -m 0755 ${WORKDIR}/40_custom ${D}${sysconfdir}/grub.d/40_custom +} + +RDEPENDS_${PN} = "diffutils freetype" +FILES_${PN}-dbg += "${libdir}/${BPN}/*/.debug" + +INSANE_SKIP_${PN} = "arch" +INSANE_SKIP_${PN}-dbg = "arch"