X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 654A8DC196B for ; Sat, 18 Feb 2012 08:18:06 +0000 (UTC) Received: by eekb47 with SMTP id b47so1801005eek.13 for ; Sat, 18 Feb 2012 00:18:04 -0800 (PST) Received-SPF: pass (google.com: domain of timo.teras@gmail.com designates 10.213.34.138 as permitted sender) client-ip=10.213.34.138; Authentication-Results: mr.google.com; spf=pass (google.com: domain of timo.teras@gmail.com designates 10.213.34.138 as permitted sender) smtp.mail=timo.teras@gmail.com; dkim=pass header.i=timo.teras@gmail.com Received: from mr.google.com ([10.213.34.138]) by 10.213.34.138 with SMTP id l10mr343338ebd.58.1329553084796 (num_hops = 1); Sat, 18 Feb 2012 00:18:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :x-mailer:mime-version:content-type:content-transfer-encoding; bh=i+Ds9DiXpIILuD0VzE8faaB2ovPWOdfhqXrZR4ba8mY=; b=FC9hv5BAcBtSGPdqCLt+xtmJXcekBnXqPSTXscJnlAGm5vwWsRS0Vc7WskIPkX/dK4 TFntgbazhp0dX5apxLsoXrgPTI8pYcSxBLUABmMMA0w2sAO0cmGo1RQ+0YlWebXhVw/a KbcI2PmU0jfZW85SSUpU08xHQ1eWDcVuNUEJM= Received: by 10.213.34.138 with SMTP id l10mr285005ebd.58.1329553082745; Sat, 18 Feb 2012 00:18:02 -0800 (PST) Received: from vostro ([83.145.235.194]) by mx.google.com with ESMTPS id c16sm48594958eei.1.2012.02.18.00.18.02 (version=SSLv3 cipher=OTHER); Sat, 18 Feb 2012 00:18:02 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Sat, 18 Feb 2012 10:17:41 +0200 From: Timo Teras To: Nathan Angelacos Cc: Alpine Developers Subject: Re: [alpine-devel] Request for pointers in porting alpine linux Message-ID: <20120218101741.2106834d@vostro> In-Reply-To: <4F3EE25B.8000308@alpinelinux.org> References: <4F3EE25B.8000308@alpinelinux.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; i686-pc-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, On Fri, 17 Feb 2012 18:27:23 -0500 Nathan Angelacos wrote: > Looks like I'll be doing more work on ARM processors in the near > future. > > Anyone have any pointers wrt porting Alpine to a new architecture? > Anything at all would be helpful. When we did the NPTL-update the steps were roughly: 1. Build cross compiler tool chain - I used crosstool-NG [crosstool-ng.org]; it is also apk addable, but needs an update 2. Using the cross compiler, build initial minimum build environment - I believe ncopa made a list of what to build and which order (basically need kernel, perl, openssl, apk-tools and alpine-sdk with their dependencies) - abuild called to build, with CROSS set to cross compiler prefix - abuild called so that dependencies are ignored, and no packages generated; everything was installed to same target dir 3. Now we have minimum bootstrap environment for target; either boot on target machine, or QEMU - repeat step 2. but this time generate packages 4. Now you have initial packages for install that you can use further; these can be used to setup the buildozer for the architecture I afraid this is not very automated process. While the APKBUILDs do contain $CROSS suppport in various places, it could be better. And abuild should have better commands for it. Also the list of what to build and in which order should be in git somewhere. Ncopa also had some scripts for step 2. Might be even nice to keep the known-to-work initial crosstool-NG configurations, just in case. For ARM, I think it might be an idea to setup the build environment inside QEMU since it'd likely be way faster, and get a lot more RAM than from any native, reasonable priced ARM box. Cheers, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---