[OSD3358] About Kernel compile

I downloaded and compiled debian kernel ver 5.4 as following site

and then I copied the file, simcom_wwan.c in driver/net/usb
and I modified Makefile in driver/net/usb.

When I run build_kernel.sh, simcom_wwan.c was deleted
and the Makefile returned to its previous state.

How can I compile after changing the kernel source or adding files?


@taek8461, this is documented in the readme.

The main build script:


Will always destroy and reset the ./KERNEL/ directory.

If you want to rebuild the kernel with changes, you need to call the secondary build script:


So the correct procedure is:

Make you Changes


Thank you so much~