From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.microcatalog.org.uk ([217.6.246.34] helo=root.phytec.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1S60ja-0003aA-6X for ptxdist@pengutronix.de; Fri, 09 Mar 2012 15:23:57 +0100 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 60A50A30A4 for ; Thu, 8 Mar 2012 15:14:29 +0100 (CET) From: Jan Weitzel In-Reply-To: <20120309124703.GC17523@pengutronix.de> References: <20120223095448.GB28597@pengutronix.de> <1330015251-12610-1-git-send-email-j.weitzel@phytec.de> <20120308132323.GM16283@pengutronix.de> <1331287364.3653.19.camel@lws-weitzel> <20120309124703.GC17523@pengutronix.de> Date: Fri, 09 Mar 2012 15:23:51 +0100 Message-ID: <1331303031.3653.21.camel@lws-weitzel> Mime-Version: 1.0 Subject: Re: [ptxdist] [PATCH] Build MLO from barebox sources Reply-To: ptxdist@pengutronix.de, J.Weitzel@phytec.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Am Freitag, den 09.03.2012, 13:47 +0100 schrieb Michael Olbrich: > On Fri, Mar 09, 2012 at 11:02:44AM +0100, Jan Weitzel wrote: > > Am Donnerstag, den 08.03.2012, 14:23 +0100 schrieb Michael Olbrich: > > > On Thu, Feb 23, 2012 at 05:40:51PM +0100, Jan Weitzel wrote: > > > > Build MLO in $(BUILDDIR)/barebox_mlo-* with config PTXCONF_BAREBOX_MLO_CONFIG > > > > Default config is barebox_mlo.config. > > > > > > Applied. > > > I did some more modifications in another commit. Please check that it still > > > works for you. > > No, version is missing in url. Fixed by a hint from you ;) > > I am going to send the patch. > > > > ~/git/ptxdist/bin/ptxdist targetinstall barebox_mlo > > Did you run "ptxdist oldconfig" first? If barebox is enabled the > PTXCONF_BAREBOX_MLO_VERSION defaults to PTXCONF_BAREBOX_VERSION. However > without oldconfig this will not be set. Hello, oldconfig didn't help: ~/git/ptxdist/bin/ptxdist oldconfig ~/git/ptxdist/bin/ptxdist targetinstall barebox_mlo ------------------------ target: barebox-.tar.bz2 ------------------------ --2012-03-09 15:21:05-- http://www.barebox.org/download/barebox-.tar.bz2 Resolving www.barebox.org... 78.47.139.85, 2a01:4f8:121:2:5054:ff:feaf:fc62 Connecting to www.barebox.org|78.47.139.85|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-03-09 15:21:05 ERROR 404: Not Found. --2012-03-09 15:21:05-- http://www.pengutronix.de/software/ptxdist/temporary-src/barebox-.tar.bz2 Resolving www.pengutronix.de... 78.47.139.85, 2a01:4f8:121:2:5054:ff:feaf:fc62 Connecting to www.pengutronix.de|78.47.139.85|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2012-03-09 15:21:05 ERROR 404: Not Found. Could not download packet URL: http://www.barebox.org/download/barebox-.tar.bz2 make: *** [/home/ptxdist_src/barebox-.tar.bz2] Error 1 > Michael > > > ------------------------ > > target: barebox-.tar.bz2 > > ------------------------ > > > > --2012-03-09 10:41:41-- > > http://www.barebox.org/download/barebox-.tar.bz2 > > Resolving www.barebox.org... 78.47.139.85, > > 2a01:4f8:121:2:5054:ff:feaf:fc62 > > Connecting to www.barebox.org|78.47.139.85|:80... connected. > > HTTP request sent, awaiting response... 404 Not Found > > 2012-03-09 10:41:41 ERROR 404: Not Found. > > > > --2012-03-09 10:41:41-- > > http://www.pengutronix.de/software/ptxdist/temporary-src/barebox-.tar.bz2 > > Resolving www.pengutronix.de... 78.47.139.85, > > 2a01:4f8:121:2:5054:ff:feaf:fc62 > > Connecting to www.pengutronix.de|78.47.139.85|:80... connected. > > HTTP request sent, awaiting response... 404 Not Found > > 2012-03-09 10:41:41 ERROR 404: Not Found. > > > > > > Could not download packet > > URL: http://www.barebox.org/download/barebox-.tar.bz2 > > > > make: *** [/home/ptxdist_src/barebox-.tar.bz2] Error 1 > > > > > > > > > > > > > > grep BAREBOX selected_platformconfig > > PTXCONF_BAREBOX=y > > PTXCONF_BAREBOX_VERSION="2011.12.0" > > PTXCONF_BAREBOX_MD5="a2f7725dfb5b15b2f3275663d663ab3b" > > PTXCONF_BAREBOX_CONFIG="barebox.config" > > PTXCONF_BAREBOX_ARCH_STRING="arm" > > PTXCONF_BAREBOX_EXTRA_ENV=y > > PTXCONF_BAREBOX_EXTRA_ENV_PATH="${PTXDIST_PLATFORMCONFIGDIR}/barebox-defaultenv" > > PTXCONF_BAREBOX_MLO=y > > PTXCONF_BAREBOX_MLO_VERSION="${BAREBOX_VERSION}" > > PTXCONF_BAREBOX_MLO_MD5="${BAREBOX_MD5}" > > PTXCONF_BAREBOX_MLO_ARCH_STRING="arm" > > PTXCONF_BAREBOX_MLO_CONFIG="barebox_mlo.config" > > # PTXCONF_BAREBOX_BBENV is not set > > > > > > ~/git/ptxdist/bin/ptxdist print BAREBOX_MLO_URL > > http://www.barebox.org/download/barebox-.tar.bz2 > > > > > > > Michael > > > > > > > Signed-off-by: Jan Weitzel > > > > --- > > > > platforms/barebox_mlo.in | 19 ++++++++++ > > > > rules/barebox_mlo.make | 88 ++++++++++++++++++++++++++++++++++++++++++++++ > > > > 2 files changed, 107 insertions(+), 0 deletions(-) > > > > create mode 100644 platforms/barebox_mlo.in > > > > create mode 100644 rules/barebox_mlo.make > > > > > > > > diff --git a/platforms/barebox_mlo.in b/platforms/barebox_mlo.in > > > > new file mode 100644 > > > > index 0000000..f1e9c78 > > > > --- /dev/null > > > > +++ b/platforms/barebox_mlo.in > > > > @@ -0,0 +1,19 @@ > > > > +## SECTION=bootloader > > > > + > > > > +menuconfig BAREBOX_MLO > > > > + prompt "barebox mlo " > > > > + bool > > > > + depends on BAREBOX > > > > + help > > > > + Build mlo from barebox sources. > > > > + > > > > +if BAREBOX_MLO > > > > + > > > > +config BAREBOX_MLO_CONFIG > > > > + prompt "mlo config file" > > > > + string > > > > + default "barebox_mlo.config" > > > > + help > > > > + This entry specifies the .config file used to compile mlo. > > > > + > > > > +endif > > > > diff --git a/rules/barebox_mlo.make b/rules/barebox_mlo.make > > > > new file mode 100644 > > > > index 0000000..0efab3b > > > > --- /dev/null > > > > +++ b/rules/barebox_mlo.make > > > > @@ -0,0 +1,88 @@ > > > > +# -*-makefile-*- > > > > +# > > > > +# Copyright (C) 2012 Jan Weitzel > > > > +# > > > > +# See CREDITS for details about who has contributed to this project. > > > > +# > > > > +# For further information about the PTXdist project and license conditions > > > > +# see the README file. > > > > +# > > > > + > > > > +# > > > > +# We provide this package > > > > +# > > > > +PACKAGES-$(PTXCONF_BAREBOX_MLO) += barebox_mlo > > > > + > > > > +# > > > > +# Paths and names > > > > +# > > > > +BAREBOX_MLO_VERSION = $(BAREBOX_VERSION) > > > > +BAREBOX_MLO_MD5 = $(BAREBOX_MD5) > > > > +BAREBOX_MLO = $(BAREBOX) > > > > +BAREBOX_MLO_DIR = $(BUILDDIR)/barebox_mlo-$(BAREBOX_MLO_VERSION) > > > > +BAREBOX_MLO_SOURCE = $(BAREBOX_SOURCE) > > > > +BAREBOX_MLO_LICENSE := GPLv2 > > > > + > > > > +BAREBOX_MLO_CONFIG := $(call remove_quotes, \ > > > > + $(PTXDIST_PLATFORMCONFIGDIR)/$(PTXCONF_BAREBOX_MLO_CONFIG)) > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# Prepare > > > > +# ---------------------------------------------------------------------------- > > > > +BAREBOX_MLO_CONF_ENV := KCONFIG_NOTIMESTAMP=1 > > > > +BAREBOX_MLO_CONF_TOOL := kconfig > > > > +BAREBOX_MLO_CONF_OPT := \ > > > > + HOSTCC=$(HOSTCC) \ > > > > + ARCH=$(PTXCONF_BAREBOX_ARCH_STRING) \ > > > > + CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) > > > > + > > > > +BAREBOX_MLO_MAKE_OPT := $(BAREBOX_MLO_CONF_OPT) > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# Install > > > > +# ---------------------------------------------------------------------------- > > > > + > > > > +$(STATEDIR)/barebox_mlo.install: > > > > + @$(call targetinfo) > > > > + @$(call touch) > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# Target-Install > > > > +# ---------------------------------------------------------------------------- > > > > + > > > > +$(STATEDIR)/barebox_mlo.targetinstall: > > > > + @$(call targetinfo) > > > > +# #barebox renamed barebox.bin.ift to MLO, so fall back to barebox.bin.ift > > > > + @ptxd_get_path "$(BAREBOX_MLO_DIR)/MLO" \ > > > > + "$(BAREBOX_MLO_DIR)/barebox.bin.ift" && \ > > > > + install -D -m644 "$${ptxd_reply}" "$(IMAGEDIR)/MLO" > > > > + > > > > + @$(call touch) > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# Clean > > > > +# ---------------------------------------------------------------------------- > > > > + > > > > +$(STATEDIR)/barebox_mlo.clean: > > > > + @$(call targetinfo) > > > > + @$(call clean_pkg, BAREBOX_MLO) > > > > + rm -rf $(IMAGEDIR)/MLO > > > > + > > > > +# ---------------------------------------------------------------------------- > > > > +# oldconfig / menuconfig > > > > +# ---------------------------------------------------------------------------- > > > > + > > > > +barebox_mlo_oldconfig barebox_mlo_menuconfig: $(STATEDIR)/barebox_mlo.extract > > > > + @if test -e $(BAREBOX_MLO_CONFIG); then \ > > > > + cp $(BAREBOX_MLO_CONFIG) $(BAREBOX_MLO_DIR)/.config; \ > > > > + fi > > > > + cd $(BAREBOX_MLO_DIR) && \ > > > > + $(BAREBOX_MLO_PATH) $(BAREBOX_MLO_ENV) $(MAKE) \ > > > > + $(BAREBOX_MLO_MAKEVARS) $(subst barebox_mlo_,,$@) > > > > + @if cmp -s $(BAREBOX_MLO_DIR)/.config $(BAREBOX_MLO_CONFIG); then \ > > > > + echo "barebox_mlo configuration unchanged"; \ > > > > + else \ > > > > + cp $(BAREBOX_MLO_DIR)/.config $(BAREBOX_MLO_CONFIG); \ > > > > + fi > > > > + > > > > +# vim: syntax=make > > > > -- > > > > 1.7.0.4 > > > > > > > > > > > > -- > > > > ptxdist mailing list > > > > ptxdist@pengutronix.de > > > > > > > > > > -- > > > Pengutronix e.K. | | > > > Industrial Linux Solutions | http://www.pengutronix.de/ | > > > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > > > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > > > > > > > > > > -- > > ptxdist mailing list > > ptxdist@pengutronix.de > > > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > -- ptxdist mailing list ptxdist@pengutronix.de