From: Peter Korsgaard <peter@korsgaard.com>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: samuel@sholland.org, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 2/2] configs/nezha_defconfig: new defconfig
Date: Fri, 05 Nov 2021 14:26:44 +0100 [thread overview]
Message-ID: <87pmreivhn.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20211105141042.7ac80413@windsurf> (Thomas Petazzoni's message of "Fri, 5 Nov 2021 14:10:42 +0100")
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:
> Howdy,
> Thanks for this! It's obviously great, just a couple of nits, see below.
> On Fri, 5 Nov 2021 13:38:47 +0100
> Peter Korsgaard <peter@korsgaard.com> wrote:
>> diff --git a/board/nezha/post-build.sh b/board/nezha/post-build.sh
>> new file mode 100755
>> index 0000000000..9d38b13b84
>> --- /dev/null
>> +++ b/board/nezha/post-build.sh
>> @@ -0,0 +1,6 @@
>> +#!/bin/sh
>> +BOARD_DIR=$(dirname $0)
>> +
>> +# Bring the extlinux.conf file in
>> +install -D -m 0644 ${BOARD_DIR}/extlinux.conf \
>> + ${TARGET_DIR}/boot/extlinux/extlinux.conf
> Probably you don't even need a post-build script here, the
> extlinux.conf could just be added to the rootfs using a rootfs overlay.
Sure, that works as well. As maybe is obvious I copied this from
beaglev. I can change to a rootfs overlay if that is nicer.
>> new file mode 100644
>> index 0000000000..f04404b9a4
>> --- /dev/null
>> +++ b/configs/nezha_defconfig
>> @@ -0,0 +1,36 @@
>> +BR2_riscv=y
>> +BR2_GLOBAL_PATCH_DIR="board/nezha/patches"
>> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_14=y
>> +BR2_ROOTFS_POST_BUILD_SCRIPT="board/nezha/post-build.sh"
>> +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
>> +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/nezha/genimage.cfg"
>> +BR2_LINUX_KERNEL=y
>> +BR2_LINUX_KERNEL_CUSTOM_GIT=y
>> +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/smaeul/linux.git"
>> +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="012f5a3d01be6d44e32c74bb3637ec281790b297"
> Here...
>> +BR2_TARGET_OPENSBI=y
>> +BR2_TARGET_OPENSBI_CUSTOM_GIT=y
>> +BR2_TARGET_OPENSBI_CUSTOM_REPO_URL="https://github.com/smaeul/opensbi"
>> +BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION="b9125c6f8909d1cc0417795737fc13cb6297ff11"
> Here...
>> +BR2_TARGET_UBOOT_CUSTOM_GIT=y
>> +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/smaeul/u-boot"
>> +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="62392d3b8a624a80646c1876533336f90140088d"
> .. and here
> We normally use the github macro to download a tarball instead of a
> full Git repository.
We could do that as well. I didn't do it as I'm expecting (hoping) to
see quite some updates here, but I can change it for the defconfig.
I'll wait a bit to see if there is other feedback and then send a v2
changing the above.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2021-11-05 13:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-05 12:38 [Buildroot] [PATCH 1/2] boot/sun20i-d1-spl: new package Peter Korsgaard
2021-11-05 12:38 ` [Buildroot] [PATCH 2/2] configs/nezha_defconfig: new defconfig Peter Korsgaard
2021-11-05 13:10 ` Thomas Petazzoni
2021-11-05 13:26 ` Peter Korsgaard [this message]
2021-11-05 13:28 ` Giulio Benetti
2021-11-05 13:35 ` Peter Korsgaard
2021-11-05 13:52 ` Giulio Benetti
2021-11-05 14:30 ` Peter Korsgaard
2021-11-07 0:49 ` Giulio Benetti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmreivhn.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=samuel@sholland.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox