[OSD3358] About Kernel compile

Hi
I downloaded and compiled debian kernel ver 5.4 as following site
https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black

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?

Regards

@taek8461, this is documented in the readme.

The main build script:

./build_kernel.sh

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:

./tools/rebuild.sh

So the correct procedure is:

./build_kernel.sh
Make you Changes
./tools/rebuild.sh

Regards,

Thank you so much~