diff mbox series

[v10,9/9] riscv: sifive: unmatched: Switch to use binman to generate u-boot.itb

Message ID 20210519151820.319379-10-green.wan@sifive.com
State Superseded
Delegated to: Andes
Headers show
Series Add FU740 chip and HiFive Unmatched board support | expand

Commit Message

Green Wan May 19, 2021, 3:18 p.m. UTC
Update to use binman instead.

Signed-off-by: Green Wan <green.wan@sifive.com>
---
 arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi | 1 +
 board/sifive/unmatched/Kconfig                  | 1 +
 2 files changed, 2 insertions(+)

Comments

Bin Meng May 20, 2021, 1:56 a.m. UTC | #1
Hi Green,

On Wed, May 19, 2021 at 11:19 PM Green Wan <green.wan@sifive.com> wrote:
>
> Update to use binman instead.
>
> Signed-off-by: Green Wan <green.wan@sifive.com>
> ---
>  arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi | 1 +
>  board/sifive/unmatched/Kconfig                  | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> index 3dcd2b4987..c5475aa149 100644
> --- a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> +++ b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> @@ -3,6 +3,7 @@
>   * Copyright (C) 2020-2021 SiFive, Inc
>   */
>
> +#include "binman.dtsi"
>  #include "fu740-c000-u-boot.dtsi"
>  #include "fu740-hifive-unmatched-a00-ddr.dtsi"
>
> diff --git a/board/sifive/unmatched/Kconfig b/board/sifive/unmatched/Kconfig
> index 9e2748ce1e..88b5883cae 100644
> --- a/board/sifive/unmatched/Kconfig
> +++ b/board/sifive/unmatched/Kconfig
> @@ -28,6 +28,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
>         select SIFIVE_FU740
>         select SUPPORT_SPL
>         select RESET_SIFIVE
> +       select BINMAN
>         imply CMD_DHCP
>         imply CMD_EXT2
>         imply CMD_EXT4

I wonder if without this patch, does previous patches build?

If not, you need to squash this patch into previous patches to keep
bisectablility.

Regards,
Bin
Green Wan May 20, 2021, 3:10 a.m. UTC | #2
Hi Bin,

Thanks for the comment. Originally, I wanted to keep the binman change
tracked separately. I'll give it a try and create the new patch if it
doesn't.

Regards,
Green

On Thu, May 20, 2021 at 9:57 AM Bin Meng <bmeng.cn@gmail.com> wrote:

> Hi Green,
>
> On Wed, May 19, 2021 at 11:19 PM Green Wan <green.wan@sifive.com> wrote:
> >
> > Update to use binman instead.
> >
> > Signed-off-by: Green Wan <green.wan@sifive.com>
> > ---
> >  arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi | 1 +
> >  board/sifive/unmatched/Kconfig                  | 1 +
> >  2 files changed, 2 insertions(+)
> >
> > diff --git a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> > index 3dcd2b4987..c5475aa149 100644
> > --- a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> > +++ b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
> > @@ -3,6 +3,7 @@
> >   * Copyright (C) 2020-2021 SiFive, Inc
> >   */
> >
> > +#include "binman.dtsi"
> >  #include "fu740-c000-u-boot.dtsi"
> >  #include "fu740-hifive-unmatched-a00-ddr.dtsi"
> >
> > diff --git a/board/sifive/unmatched/Kconfig
> b/board/sifive/unmatched/Kconfig
> > index 9e2748ce1e..88b5883cae 100644
> > --- a/board/sifive/unmatched/Kconfig
> > +++ b/board/sifive/unmatched/Kconfig
> > @@ -28,6 +28,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
> >         select SIFIVE_FU740
> >         select SUPPORT_SPL
> >         select RESET_SIFIVE
> > +       select BINMAN
> >         imply CMD_DHCP
> >         imply CMD_EXT2
> >         imply CMD_EXT4
>
> I wonder if without this patch, does previous patches build?
>
> If not, you need to squash this patch into previous patches to keep
> bisectablility.
>
> Regards,
> Bin
>
Bin Meng May 20, 2021, 3:27 a.m. UTC | #3
Hi Green,

On Thu, May 20, 2021 at 11:10 AM Green Wan <green.wan@sifive.com> wrote:
>
> Hi Bin,
>
> Thanks for the comment. Originally, I wanted to keep the binman change tracked separately. I'll give it a try and create the new patch if it doesn't.
>

Yep, this situation is like previous FU740 PCIe driver. How we
organize the patch depends on which patch goes first in the mainline
:)

Regards,
Bin
Green Wan May 20, 2021, 7:45 a.m. UTC | #4
On Thu, May 20, 2021 at 11:27 AM Bin Meng <bmeng.cn@gmail.com> wrote:

> Hi Green,
>
> On Thu, May 20, 2021 at 11:10 AM Green Wan <green.wan@sifive.com> wrote:
> >
> > Hi Bin,
> >
> > Thanks for the comment. Originally, I wanted to keep the binman change
> tracked separately. I'll give it a try and create the new patch if it
> doesn't.
> >
>
> Yep, this situation is like previous FU740 PCIe driver. How we
> organize the patch depends on which patch goes first in the mainline
> :)
>

Yes, I know that. =) Just give it a try and squash 'binman changes' to the
previous patch.

Thanks,
Green


>
> Regards,
> Bin
>
diff mbox series

Patch

diff --git a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
index 3dcd2b4987..c5475aa149 100644
--- a/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
+++ b/arch/riscv/dts/hifive-unmatched-a00-u-boot.dtsi
@@ -3,6 +3,7 @@ 
  * Copyright (C) 2020-2021 SiFive, Inc
  */
 
+#include "binman.dtsi"
 #include "fu740-c000-u-boot.dtsi"
 #include "fu740-hifive-unmatched-a00-ddr.dtsi"
 
diff --git a/board/sifive/unmatched/Kconfig b/board/sifive/unmatched/Kconfig
index 9e2748ce1e..88b5883cae 100644
--- a/board/sifive/unmatched/Kconfig
+++ b/board/sifive/unmatched/Kconfig
@@ -28,6 +28,7 @@  config BOARD_SPECIFIC_OPTIONS # dummy
 	select SIFIVE_FU740
 	select SUPPORT_SPL
 	select RESET_SIFIVE
+	select BINMAN
 	imply CMD_DHCP
 	imply CMD_EXT2
 	imply CMD_EXT4