How to maintain a suit of customized source code of openwrt firmware by git?

I have a copy of customized openwrt source code suit from a router board vendor, including build_dir and all source files under it. Some of the sourc files are customized for the vendor's board that I boudght, e.g. usb driver files in build_dir/target....../drivers/usb/serial/, dts file under target/linux/ramps/dts/, and so on.

I also make my own modifications on the source code suit: add some packages; modify dts file; modify some source code under package/kernel...

I want to build a git repo to maintain all theses customized codes (for my customized board), so that other colleague can work on it. But since openwrt always downloads new files (to build_dir) when building, my modified files are always overwritten. I wonder if there is any workflow for this kind of development requirment. Could anybody help me?

You need to convert the edits done in build_dir to be patches in target/linux/general and/or device target patches directory.

build_dir is meant to be generated on the fly during compilation. It is not for permanent stuff.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.