diff mbox

Allow user to specify Linux kernel version

Message ID F9C551623D2CBB4C9488801D14F864C6B9FB132F@ex-mb1.corp.adtran.com
State New
Headers show

Commit Message

ANDY KENNEDY June 30, 2015, 9:35 p.m. UTC
Allow user to specify the Linux kernel through a manual
string entry.

Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>
---

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Comments

ANDY KENNEDY Oct. 7, 2015, 10:48 p.m. UTC | #1
Ping.

> -----Original Message-----
> From: ANDY KENNEDY
> Sent: Tuesday, June 30, 2015 4:35 PM
> To: 'crossgcc@sourceware.org'
> Subject: [PATCH] Allow user to specify Linux kernel version
> 
> Allow user to specify the Linux kernel through a manual
> string entry.
> 
> Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>
> ---
> diff -Naur a/config/kernel/linux.in b/config/kernel/linux.in
> --- a/config/kernel/linux.in	2015-06-30 16:25:14.183781577 -0500
> +++ b/config/kernel/linux.in	2015-06-29 17:46:45.621904211 -0500
> @@ -63,6 +63,20 @@
>      prompt "2.6.32.67"
>      help
> 
> +config KERNEL_MANUAL
> +    bool
> +    prompt "Manually provide the kernel version."
> +    help
> +      Specify the exact kernel version you wish to use.
> +
> +config KERNEL_MANUAL_VER
> +    string
> +    prompt "Enter the kernel version"
> +    depends on KERNEL_MANUAL
> +    help
> +      The version should be entered as 2.6.33 or 2.6.36.2 etc.  Do not provide
> +      linux- before or .tar.bz2 after.
> +
>  config KERNEL_LINUX_CUSTOM
>      bool
>      prompt "custom tarball or directory"
> @@ -92,6 +106,7 @@
>      default "3.4.108" if KERNEL_V_3_4
>      default "3.2.69" if KERNEL_V_3_2
>      default "2.6.32.67" if KERNEL_V_2_6_32
> +    default KERNEL_MANUAL_VER if KERNEL_MANUAL
>      default "custom" if KERNEL_LINUX_CUSTOM
> 
>  endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS

--
For unsubscribe information see http://sourceware.org/lists.html#faq
Bryan Hundven Oct. 8, 2015, 6:55 p.m. UTC | #2
Andy,

On Wed, Oct 7, 2015 at 3:48 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:
> Ping.
>
>> -----Original Message-----
>> From: ANDY KENNEDY
>> Sent: Tuesday, June 30, 2015 4:35 PM
>> To: 'crossgcc@sourceware.org'
>> Subject: [PATCH] Allow user to specify Linux kernel version
>>
>> Allow user to specify the Linux kernel through a manual
>> string entry.
>>
>> Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>
>> ---
>> diff -Naur a/config/kernel/linux.in b/config/kernel/linux.in
>> --- a/config/kernel/linux.in  2015-06-30 16:25:14.183781577 -0500
>> +++ b/config/kernel/linux.in  2015-06-29 17:46:45.621904211 -0500
>> @@ -63,6 +63,20 @@
>>      prompt "2.6.32.67"
>>      help
>>
>> +config KERNEL_MANUAL
>> +    bool
>> +    prompt "Manually provide the kernel version."
>> +    help
>> +      Specify the exact kernel version you wish to use.
>> +
>> +config KERNEL_MANUAL_VER
>> +    string
>> +    prompt "Enter the kernel version"
>> +    depends on KERNEL_MANUAL
>> +    help
>> +      The version should be entered as 2.6.33 or 2.6.36.2 etc.  Do not provide
>> +      linux- before or .tar.bz2 after.
>> +
>>  config KERNEL_LINUX_CUSTOM
>>      bool
>>      prompt "custom tarball or directory"
>> @@ -92,6 +106,7 @@
>>      default "3.4.108" if KERNEL_V_3_4
>>      default "3.2.69" if KERNEL_V_3_2
>>      default "2.6.32.67" if KERNEL_V_2_6_32
>> +    default KERNEL_MANUAL_VER if KERNEL_MANUAL
>>      default "custom" if KERNEL_LINUX_CUSTOM
>>
>>  endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS

Do you think the manual version should toggle the custom version?
(manual, implying custom?)

-Bryan

--
For unsubscribe information see http://sourceware.org/lists.html#faq
ANDY KENNEDY Oct. 8, 2015, 7:20 p.m. UTC | #3
> -----Original Message-----

> From: Bryan Hundven [mailto:bryanhundven@gmail.com]

> Sent: Thursday, October 08, 2015 1:56 PM

> To: ANDY KENNEDY

> Cc: crossgcc@sourceware.org

> Subject: Re: [PATCH] Allow user to specify Linux kernel version

> 

> Andy,

> 

> On Wed, Oct 7, 2015 at 3:48 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:

> > Ping.

> >

> >> -----Original Message-----

> >> From: ANDY KENNEDY

> >> Sent: Tuesday, June 30, 2015 4:35 PM

> >> To: 'crossgcc@sourceware.org'

> >> Subject: [PATCH] Allow user to specify Linux kernel version

> >>

> >> Allow user to specify the Linux kernel through a manual

> >> string entry.

> >>

> >> Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>

> >> ---

> >> diff -Naur a/config/kernel/linux.in b/config/kernel/linux.in

> >> --- a/config/kernel/linux.in  2015-06-30 16:25:14.183781577 -0500

> >> +++ b/config/kernel/linux.in  2015-06-29 17:46:45.621904211 -0500

> >> @@ -63,6 +63,20 @@

> >>      prompt "2.6.32.67"

> >>      help

> >>

> >> +config KERNEL_MANUAL

> >> +    bool

> >> +    prompt "Manually provide the kernel version."

> >> +    help

> >> +      Specify the exact kernel version you wish to use.

> >> +

> >> +config KERNEL_MANUAL_VER

> >> +    string

> >> +    prompt "Enter the kernel version"

> >> +    depends on KERNEL_MANUAL

> >> +    help

> >> +      The version should be entered as 2.6.33 or 2.6.36.2 etc.  Do not provide

> >> +      linux- before or .tar.bz2 after.

> >> +

> >>  config KERNEL_LINUX_CUSTOM

> >>      bool

> >>      prompt "custom tarball or directory"

> >> @@ -92,6 +106,7 @@

> >>      default "3.4.108" if KERNEL_V_3_4

> >>      default "3.2.69" if KERNEL_V_3_2

> >>      default "2.6.32.67" if KERNEL_V_2_6_32

> >> +    default KERNEL_MANUAL_VER if KERNEL_MANUAL

> >>      default "custom" if KERNEL_LINUX_CUSTOM

> >>

> >>  endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS

> 

> Do you think the manual version should toggle the custom version?

> (manual, implying custom?)

> 

> -Bryan


That is not the way I use it.  What I do with this is to allow myself to
enter a kernel version which is then pulled by CT-NG from the local
server I have supplied, unpack it, build the headers and install them
into the toolchain.  The custom seems to be more of a "I have a kernel
directory unpacked on my system at /path/to/my/kernel and want to use
that" option.  I don't want to have to unpack my kernel into some
location, then feed that into the config at build time.  I would have to
build in some fetch and unpack targets into my create_toolchain package
in which I wrapper CT-NG and BuildRoot (CT-NG for the base toolchain
then a modified version of BuildRoot to pack the libraries into the
base toolchain).

The reason for the patch is so I don't have to drag this patch forward
continuously.  It is a simple patch, which adds additional functionality
to CT-NT (makes it a bit more flexible).  You could easily add in a
comment that reports this is advanced magic and I hope you know what you
are doing -- if you don't want to support it. The patch doesn't lend
well to future versions of CT-NG as that is an area that stays in flux
much of the time -- So, it ends up being a manual patch for me every
time a pull a new version of CT-NG.

Andy
Bryan Hundven Oct. 8, 2015, 7:45 p.m. UTC | #4
Andy,

On Thu, Oct 8, 2015 at 12:20 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:
>
>
>> -----Original Message-----
>> From: Bryan Hundven [mailto:bryanhundven@gmail.com]
>> Sent: Thursday, October 08, 2015 1:56 PM
>> To: ANDY KENNEDY
>> Cc: crossgcc@sourceware.org
>> Subject: Re: [PATCH] Allow user to specify Linux kernel version
>>
>> Andy,
>>
>> On Wed, Oct 7, 2015 at 3:48 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:
>> > Ping.
>> >
>> >> -----Original Message-----
>> >> From: ANDY KENNEDY
>> >> Sent: Tuesday, June 30, 2015 4:35 PM
>> >> To: 'crossgcc@sourceware.org'
>> >> Subject: [PATCH] Allow user to specify Linux kernel version
>> >>
>> >> Allow user to specify the Linux kernel through a manual
>> >> string entry.
>> >>
>> >> Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>
>> >> ---
>> >> diff -Naur a/config/kernel/linux.in b/config/kernel/linux.in
>> >> --- a/config/kernel/linux.in  2015-06-30 16:25:14.183781577 -0500
>> >> +++ b/config/kernel/linux.in  2015-06-29 17:46:45.621904211 -0500
>> >> @@ -63,6 +63,20 @@
>> >>      prompt "2.6.32.67"
>> >>      help
>> >>
>> >> +config KERNEL_MANUAL
>> >> +    bool
>> >> +    prompt "Manually provide the kernel version."
>> >> +    help
>> >> +      Specify the exact kernel version you wish to use.
>> >> +
>> >> +config KERNEL_MANUAL_VER
>> >> +    string
>> >> +    prompt "Enter the kernel version"
>> >> +    depends on KERNEL_MANUAL
>> >> +    help
>> >> +      The version should be entered as 2.6.33 or 2.6.36.2 etc.  Do not provide
>> >> +      linux- before or .tar.bz2 after.
>> >> +
>> >>  config KERNEL_LINUX_CUSTOM
>> >>      bool
>> >>      prompt "custom tarball or directory"
>> >> @@ -92,6 +106,7 @@
>> >>      default "3.4.108" if KERNEL_V_3_4
>> >>      default "3.2.69" if KERNEL_V_3_2
>> >>      default "2.6.32.67" if KERNEL_V_2_6_32
>> >> +    default KERNEL_MANUAL_VER if KERNEL_MANUAL
>> >>      default "custom" if KERNEL_LINUX_CUSTOM
>> >>
>> >>  endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS
>>
>> Do you think the manual version should toggle the custom version?
>> (manual, implying custom?)
>>
>> -Bryan
>
> That is not the way I use it.  What I do with this is to allow myself to
> enter a kernel version which is then pulled by CT-NG from the local
> server I have supplied, unpack it, build the headers and install them
> into the toolchain.  The custom seems to be more of a "I have a kernel
> directory unpacked on my system at /path/to/my/kernel and want to use
> that" option.  I don't want to have to unpack my kernel into some
> location, then feed that into the config at build time.  I would have to
> build in some fetch and unpack targets into my create_toolchain package
> in which I wrapper CT-NG and BuildRoot (CT-NG for the base toolchain
> then a modified version of BuildRoot to pack the libraries into the
> base toolchain).
>
> The reason for the patch is so I don't have to drag this patch forward
> continuously.  It is a simple patch, which adds additional functionality
> to CT-NT (makes it a bit more flexible).  You could easily add in a
> comment that reports this is advanced magic and I hope you know what you
> are doing -- if you don't want to support it. The patch doesn't lend
> well to future versions of CT-NG as that is an area that stays in flux
> much of the time -- So, it ends up being a manual patch for me every
> time a pull a new version of CT-NG.
>
> Andy

Would it be better to just have git/svn/cvs/bzr/etc... support for all
components?

-Bryan

--
For unsubscribe information see http://sourceware.org/lists.html#faq
ANDY KENNEDY Oct. 8, 2015, 9:16 p.m. UTC | #5
> -----Original Message-----

> From: Bryan Hundven [mailto:bryanhundven@gmail.com]

> Sent: Thursday, October 08, 2015 2:45 PM

> To: ANDY KENNEDY

> Cc: crossgcc@sourceware.org

> Subject: Re: [PATCH] Allow user to specify Linux kernel version

> 

> Andy,

> 

> On Thu, Oct 8, 2015 at 12:20 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:

> >

> >

> >> -----Original Message-----

> >> From: Bryan Hundven [mailto:bryanhundven@gmail.com]

> >> Sent: Thursday, October 08, 2015 1:56 PM

> >> To: ANDY KENNEDY

> >> Cc: crossgcc@sourceware.org

> >> Subject: Re: [PATCH] Allow user to specify Linux kernel version

> >>

> >> Andy,

> >>

> >> On Wed, Oct 7, 2015 at 3:48 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:

> >> > Ping.

> >> >

> >> >> -----Original Message-----

> >> >> From: ANDY KENNEDY

> >> >> Sent: Tuesday, June 30, 2015 4:35 PM

> >> >> To: 'crossgcc@sourceware.org'

> >> >> Subject: [PATCH] Allow user to specify Linux kernel version

> >> >>

> >> >> Allow user to specify the Linux kernel through a manual

> >> >> string entry.

> >> >>

> >> >> Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>

> >> >> ---

> >> >> diff -Naur a/config/kernel/linux.in b/config/kernel/linux.in

> >> >> --- a/config/kernel/linux.in  2015-06-30 16:25:14.183781577 -0500

> >> >> +++ b/config/kernel/linux.in  2015-06-29 17:46:45.621904211 -0500

> >> >> @@ -63,6 +63,20 @@

> >> >>      prompt "2.6.32.67"

> >> >>      help

> >> >>

> >> >> +config KERNEL_MANUAL

> >> >> +    bool

> >> >> +    prompt "Manually provide the kernel version."

> >> >> +    help

> >> >> +      Specify the exact kernel version you wish to use.

> >> >> +

> >> >> +config KERNEL_MANUAL_VER

> >> >> +    string

> >> >> +    prompt "Enter the kernel version"

> >> >> +    depends on KERNEL_MANUAL

> >> >> +    help

> >> >> +      The version should be entered as 2.6.33 or 2.6.36.2 etc.  Do not provide

> >> >> +      linux- before or .tar.bz2 after.

> >> >> +

> >> >>  config KERNEL_LINUX_CUSTOM

> >> >>      bool

> >> >>      prompt "custom tarball or directory"

> >> >> @@ -92,6 +106,7 @@

> >> >>      default "3.4.108" if KERNEL_V_3_4

> >> >>      default "3.2.69" if KERNEL_V_3_2

> >> >>      default "2.6.32.67" if KERNEL_V_2_6_32

> >> >> +    default KERNEL_MANUAL_VER if KERNEL_MANUAL

> >> >>      default "custom" if KERNEL_LINUX_CUSTOM

> >> >>

> >> >>  endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS

> >>

> >> Do you think the manual version should toggle the custom version?

> >> (manual, implying custom?)

> >>

> >> -Bryan

> >

> > That is not the way I use it.  What I do with this is to allow myself to

> > enter a kernel version which is then pulled by CT-NG from the local

> > server I have supplied, unpack it, build the headers and install them

> > into the toolchain.  The custom seems to be more of a "I have a kernel

> > directory unpacked on my system at /path/to/my/kernel and want to use

> > that" option.  I don't want to have to unpack my kernel into some

> > location, then feed that into the config at build time.  I would have to

> > build in some fetch and unpack targets into my create_toolchain package

> > in which I wrapper CT-NG and BuildRoot (CT-NG for the base toolchain

> > then a modified version of BuildRoot to pack the libraries into the

> > base toolchain).

> >

> > The reason for the patch is so I don't have to drag this patch forward

> > continuously.  It is a simple patch, which adds additional functionality

> > to CT-NT (makes it a bit more flexible).  You could easily add in a

> > comment that reports this is advanced magic and I hope you know what you

> > are doing -- if you don't want to support it. The patch doesn't lend

> > well to future versions of CT-NG as that is an area that stays in flux

> > much of the time -- So, it ends up being a manual patch for me every

> > time a pull a new version of CT-NG.

> >

> > Andy

> 

> Would it be better to just have git/svn/cvs/bzr/etc... support for all

> components?

> 

> -Bryan


Clearly I'm missing something.  You may have to spoon feed me on this on
as I'm obviously too thick to get your point.

I have a raw tarball from kernel.org.  I want to reject the list of
kernel versions that was provided in the choice box for kernel headers.
I want to pull down kernel version 2.6.12.2-rc88_spit1-Arrgh-Matte from
the ftp locations listed in the kconfig menus (manually supplied).  I
don't want to have to unpack that version prior to running
"ct-ng build".

How would having git/svn/cvs/bzr/etc help me?

Sorry for being stupid,
Andy
diff mbox

Patch

diff -Naur a/config/kernel/linux.in b/config/kernel/linux.in
--- a/config/kernel/linux.in	2015-06-30 16:25:14.183781577 -0500
+++ b/config/kernel/linux.in	2015-06-29 17:46:45.621904211 -0500
@@ -63,6 +63,20 @@ 
     prompt "2.6.32.67"
     help
  
+config KERNEL_MANUAL
+    bool
+    prompt "Manually provide the kernel version."
+    help
+      Specify the exact kernel version you wish to use.
+
+config KERNEL_MANUAL_VER
+    string
+    prompt "Enter the kernel version"
+    depends on KERNEL_MANUAL
+    help
+      The version should be entered as 2.6.33 or 2.6.36.2 etc.  Do not provide
+      linux- before or .tar.bz2 after.
+
 config KERNEL_LINUX_CUSTOM
     bool
     prompt "custom tarball or directory"
@@ -92,6 +106,7 @@ 
     default "3.4.108" if KERNEL_V_3_4
     default "3.2.69" if KERNEL_V_3_2
     default "2.6.32.67" if KERNEL_V_2_6_32
+    default KERNEL_MANUAL_VER if KERNEL_MANUAL
     default "custom" if KERNEL_LINUX_CUSTOM
 
 endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS