* [Buildroot] Linux kernel make target
@ 2023-07-05 5:21 Nick Betteridge
2023-07-05 5:30 ` Jean-Michel Hautbois
0 siblings, 1 reply; 4+ messages in thread
From: Nick Betteridge @ 2023-07-05 5:21 UTC (permalink / raw)
To: buildroot
Hi,
I'm unable to find an option in menuconfig which allows me to specify a
kernel target for 'make' - is this possible? In other words, I can see
how to specify the kernel source location, the defconfig etc, but I also
need to specify the target - in my case it's 'make nanopi6-images'.
Is there a way to do this?
Thanks,
Nick
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] Linux kernel make target
2023-07-05 5:21 [Buildroot] Linux kernel make target Nick Betteridge
@ 2023-07-05 5:30 ` Jean-Michel Hautbois
2023-07-05 5:49 ` Nick Betteridge
2023-07-06 8:52 ` Nick Betteridge
0 siblings, 2 replies; 4+ messages in thread
From: Jean-Michel Hautbois @ 2023-07-05 5:30 UTC (permalink / raw)
To: Nick Betteridge, buildroot
Hello Nick,
On 05/07/2023 07:21, Nick Betteridge wrote:
> Hi,
>
> I'm unable to find an option in menuconfig which allows me to specify a
> kernel target for 'make' - is this possible? In other words, I can see
> how to specify the kernel source location, the defconfig etc, but I also
> need to specify the target - in my case it's 'make nanopi6-images'.
If this target is a defconfig, you can use BR2_LINUX_KERNEL_DEFCONFIG.
But I think this is a custom target in a non-upstream kernel.
In this case, I don't think you will be able to do it directly and will
probably need to modify linux/Config.in and linux/linux.mk files.
I would suggest you avoid doing that as this is not upstream, though.
Can you be a bit more precise about what this target does ? Is it a
post-install target somehow ? I don't know nanopi6 nor the kernel you
are using ;-).
Regards,
JM
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] Linux kernel make target
2023-07-05 5:30 ` Jean-Michel Hautbois
@ 2023-07-05 5:49 ` Nick Betteridge
2023-07-06 8:52 ` Nick Betteridge
1 sibling, 0 replies; 4+ messages in thread
From: Nick Betteridge @ 2023-07-05 5:49 UTC (permalink / raw)
To: Jean-Michel Hautbois, buildroot
Salut JM
>> I'm unable to find an option in menuconfig which allows me to specify
>> a kernel target for 'make' - is this possible? In other words, I can
>> see how to specify the kernel source location, the defconfig etc, but
>> I also need to specify the target - in my case it's 'make
>> nanopi6-images'.
>
> Can you be a bit more precise about what this target does ? Is it a
> post-install target somehow ? I don't know nanopi6 nor the kernel you
> are using ;-).
>
The friendlyelec nanopi t6 uses a forked kernel [1] and the build
sequence is defined in [2] with a 'make' defined in [3]. The 'make'
command also generates a 'resource.img' which is included in the
construction of the image [4]
I guess that if I'm unable to add the target to the menuconfig kernel
build options then I'll have to create the resource.img in a post-build
script.
Just trying to avoid writing another script :)
Regards,
Nick
[1] https://github.com/friendlyarm/kernel-rockchip -b nanopi5-v5.10.y_opt
[2]
https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T6#Build_kernel_linux-v5.10.y
[3] make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 nanopi6-images
-j$(nproc)
[4]
https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T6#Install_to_target_board
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] Linux kernel make target
2023-07-05 5:30 ` Jean-Michel Hautbois
2023-07-05 5:49 ` Nick Betteridge
@ 2023-07-06 8:52 ` Nick Betteridge
1 sibling, 0 replies; 4+ messages in thread
From: Nick Betteridge @ 2023-07-06 8:52 UTC (permalink / raw)
To: Jean-Michel Hautbois, buildroot
>>
>> I'm unable to find an option in menuconfig which allows me to specify
>> a kernel target for 'make' - is this possible? In other words, I can
>> see how to specify the kernel source location, the defconfig etc, but
>> I also need to specify the target - in my case it's 'make
>> nanopi6-images'.
>
> If this target is a defconfig, you can use BR2_LINUX_KERNEL_DEFCONFIG.
> But I think this is a custom target in a non-upstream kernel.
> In this case, I don't think you will be able to do it directly and
> will probably need to modify linux/Config.in and linux/linux.mk files.
>
It works, of course! Setting the 'kernel image target name' to
'nanopi6-images' and 'kernel image name' to 'Image' - I had neglected to
set the 'kernel image name'.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-06 8:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05 5:21 [Buildroot] Linux kernel make target Nick Betteridge
2023-07-05 5:30 ` Jean-Michel Hautbois
2023-07-05 5:49 ` Nick Betteridge
2023-07-06 8:52 ` Nick Betteridge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox