[Buildroot] Pantalla tactil - hycon-hy46xx.c
Giulio Benetti
giulio.benetti at benettiengineering.com
Sat Apr 30 21:42:24 UTC 2022
Hi Albert,
I add Buildroot ML in Cc since it's in a good part Buildroot related and
other people can help too,
On 29/04/22 14:28, Albert Jose Silva Tovar wrote:
> Good afternoon Julio,
>
> I am writing to you because of a contribution you made on this website:
> https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/hycon-hy46xx.c
> <https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/hycon-hy46xx.c>
>
> I would like to ask you a question! I have a builroot OS and I would
> like to integrate this drivers to it, the sources that you use, in
> principle where would I have to put them or what would be the process of
> adapting the driver?
I think you're using a Linux version without the hycon driver, so what
you can do is to patch the kernel you're using by adding the patch to
Buildroot for Linux.
So you have to:
1. clone kernel git and checkout the version you're using or directly
use your own kernel repository if any
2. clone mainline kernel
3. extract my patches from the cloned mainline kernel with:
"git format-patch" command
4. copy the patches to your buildroot/board/company/linux like this:
https://github.com/buildroot/buildroot/tree/master/board/seeed/stm32mp157c-odyssey/patches
5. use the BR2_GLOBAL_PATCH_DIR variable in your Buildroot defconfig,
like this:
https://github.com/buildroot/buildroot/blob/master/configs/stm32mp157c_odyssey_defconfig#L3
6. rebuild Buildroot
That is the way I would do it.
Which Linux version are you using?
Feel free to ask me more help also regarding the driver itself if you
encounter problems with back-porting my patches.
Best regards
--
Giulio Benetti
Benetti Engineering sas
More information about the buildroot
mailing list