From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zc7G2-0001CT-BS for barebox@lists.infradead.org; Wed, 16 Sep 2015 07:35:59 +0000 Received: by lagj9 with SMTP id j9so124910100lag.2 for ; Wed, 16 Sep 2015 00:35:35 -0700 (PDT) Date: Wed, 16 Sep 2015 10:57:41 +0300 From: Antony Pavlov Message-Id: <20150916105741.897dffacd4102c19cb060933@gmail.com> In-Reply-To: <20150916105033.d6d9a93ef5344d0c12ad4334@gmail.com> References: <1442385648-6063-1-git-send-email-u74147@gmail.com> <20150916105033.d6d9a93ef5344d0c12ad4334@gmail.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] MIPS: start.S depends on banner To: Antony Pavlov Cc: barebox@lists.infradead.org, Kevin Du Huanpeng On Wed, 16 Sep 2015 10:50:33 +0300 Antony Pavlov wrote: > On Wed, 16 Sep 2015 14:40:48 +0800 > Kevin Du Huanpeng wrote: > = > > Signed-off-by: Kevin Du Huanpeng > > --- > > arch/mips/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > = > > diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig > > index aeb5c04..fde4c2e 100644 > > --- a/arch/mips/Kconfig > > +++ b/arch/mips/Kconfig > > @@ -6,6 +6,7 @@ config MIPS > > select HAS_KALLSYMS > > select HAVE_CONFIGURABLE_MEMORY_LAYOUT > > select HAVE_CONFIGURABLE_TEXT_BASE > > + select BANNER > > default y > > = > > config SYS_SUPPORTS_BIG_ENDIAN > > -- = > > 1.9.1 > > = > = > IMHO we can make banner use in start.S optional. E.g.: > = > diff --git a/arch/mips/boot/start.S b/arch/mips/boot/start.S > index 7e2ae5e..f3a6a00 100644 > --- a/arch/mips/boot/start.S > +++ b/arch/mips/boot/start.S > @@ -22,8 +22,10 @@ > #include > #include > #include > +#ifdef CONFIG_BANNER > #include > #include > +#endif > = > /* > * ADR macro instruction (inspired by ARM) > @@ -52,6 +54,7 @@ _pc: addiu \rd, ra, \label - _pc # label i= s assumed to be > = > EXPORT(_start) > = > +#ifdef CONFIG_BANNER > b __start > nop > = > @@ -60,6 +63,8 @@ EXPORT(_start) > .byte 0 > = > .align 4 > +#endif /* CONFIG_BANNER */ I see just the same code in the mips_barebox_10h macro from arch/mips/inclu= de/asm/pbl_macros.h. > + > __start: > /* disable watchpoints */ > mtc0 zero, CP0_WATCHLO > = > Or even add an separate option to include utsrelease information into sta= rt.S. > = > --=A0 > Best regards, > =A0 Antony Pavlov -- = --=A0 Best regards, =A0 Antony Pavlov _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox