From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Boibessot Date: Thu, 26 Dec 2013 13:40:41 +0100 Subject: [Buildroot] [PATCH] Add Armadeus systems APF51 SOM basic support. In-Reply-To: <20131226105121.4694c243@skate> References: <1388051094-3666-1-git-send-email-julien.boibessot@free.fr> <20131226105121.4694c243@skate> Message-ID: <52BC23C9.3070308@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Thomas, On 12/26/2013 10:51 AM, Thomas Petazzoni wrote: > Julien, > > On Thu, 26 Dec 2013 10:44:54 +0100, julien.boibessot at free.fr wrote: >> From: Julien Boibessot >> >> Buildroot uClibc toolchain, UBIFS rootfs, linux kernel (board is mainlined). >> >> Signed-off-by: Julien Boibessot > Thanks! Some comments below. Thanks for the review, my answers below... > >> --- /dev/null >> +++ b/board/armadeus/post-image.sh >> @@ -0,0 +1,20 @@ >> +#!/bin/sh >> +# >> +# arg1: BR images dir >> +# arg2: board name >> +# arg3: i.MX processor type >> + >> +# images renaming according to board name >> +if [ "$2" != "" ]; then >> + for rootfstype in ubi ubifs tar jffs2; do >> + if [ -f "$1/rootfs.$rootfstype" ]; then >> + mv -u $1/rootfs.$rootfstype $1/$2-rootfs.$rootfstype >> + fi >> + done >> + if [ -f "$1/uImage" ]; then >> + mv -u $1/uImage $1/$2-linux.bin >> + fi >> + if [ -f "$1/$3-$2dev.dtb" ]; then >> + mv -u $1/$3-$2dev.dtb $1/$2.dtb >> + fi >> +fi > Why do we want this? We don't do this for any of the boards in > Buildroot, and I'm not sure to see why the apf51 should be different > here. Well, I was going to update all armadeus boards configs with this mechanism too :-) > > Surely, if you want to build Buildroot for several boards, you will > create one build tree for each board, and therefore each images > directory will contain only the images for this particular board: > > make O=../apf51 apf51_defconfig > make O=../apf51 > > make O=../apf27 apf27_defconfig > make O=../apf27 > > And then in ../apf27/images/, you have images for APF27, and > in ../apf51/images/, you have images for APF51. yes but images still all have the same name and we have accustomed our (non expert) users to recognize their board images with their name prefix. Our U-Boot update scripts are common to all of our boards and require the images are prefixed with board name. (For example, our U-Boot look after /tftpboot/apf27-linux.bin instead of /tftpboot/apf27/uimage.) I you don't want us to rename images automatically, I can keep the instructions in our installation documentation and remove post-image.sh. Let me know and I will submit a v2 of the patch. But just one more question: what is the purpose of BR2_ROOTFS_POST_IMAGE_SCRIPT, if it isn't meant to move/rename images to fit targeted boards ? Best regards, Julien