guysoft / RealtimePi

An out-of-the-box raspebrrypi/raspbian distro with a realtime kernel
GNU General Public License v3.0
164 stars 25 forks source link

Add possibility to apply custom patches #5

Closed robiwano closed 6 years ago

robiwano commented 6 years ago

I'd like to build the RealtimePi image, but in addition to the RT patches, I'd like to add my own patches.

guysoft commented 6 years ago

If you want to try it quick and dirty I'd suggest editing https://github.com/guysoft/RealtimePi/blob/devel/src/modules/realtimepi/start_chroot_script direcly, you can also add files to https://github.com/guysoft/RealtimePi/blob/devel/src/modules/realtimepi/start_chroot_script .

If you want it slow and tidy I'd suggest you create a module that goes in config so you could change:

export MODULES="base(network,kernel(realtimepi))

to

export MODULES="base(network,kernel(realtimepi, my-kernel-patches))"

And keep it separate from realtimepi and maintain it. You can read more about modules here.

I'd consider adding realtimepi module in to the standard library if there are more custom kernel requests.

guysoft commented 6 years ago

@robiwano see you are advancing, should I close this?

robiwano commented 6 years ago

Yup, do so.