# Save your kernel config after customizing with 'make savedefconfig'

**Date:** 2025-12-08  
**Tags:** Android, Kernel, Linux  
**URL:** https://kelexine.is-a.dev/til/android-kernel-defconfig

---

TIL: Save your kernel config after customizing with 'make savedefconfig'. This creates a minimal defconfig from your full .config, making it portable and version-controllable. Much cleaner than committing the full 10K line .config file.


```bash
# After running make menuconfig
make savedefconfig
mv defconfig arch/arm64/configs/my_device_defconfig

# Later, restore with:
make my_device_defconfig
```




---

*This content is available at [kelexine.is-a.dev/til/android-kernel-defconfig](https://kelexine.is-a.dev/til/android-kernel-defconfig)*
