| 87 | == Making Edits to Kernel Files and Rebuilding == |
| 88 | Typically this would be done via a patch in OpenWrt. |
| 89 | |
| 90 | However, it is possible to edit a kernel .c file in an existing build and then rebuild with the changes. |
| 91 | |
| 92 | Example given below for Gateworks !OpenWrt 16.02 |
| 93 | * Edit kernel file in build dir: |
| 94 | {{{ |
| 95 | vi build_dir/target-arm_cortex-a9+neon_musl-1.1.12_eabi/linux-imx6/linux-4.4/drivers/net/usb/qmi_wwan.c |
| 96 | }}} |
| 97 | * Recompile kernel |
| 98 | {{{ |
| 99 | make target/linux/compile |
| 100 | }}} |
| 101 | * Push artifacts to !OpenWrt build system |
| 102 | {{{ |
| 103 | make target/linux/install |
| 104 | }}} |
| 105 | * Recompile !OpenWrt .ubi images (for Ventana NAND) |
| 106 | {{{ |
| 107 | make -C gateworks/ imx6 |
| 108 | }}} |
| 109 | |