]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix(build): auto-init submodules, auto-apply lwIP patch, fix corrupt patch
authorTulio A M Mendes <[email protected]>
Fri, 3 Apr 2026 20:07:27 +0000 (17:07 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 3 Apr 2026 20:07:27 +0000 (17:07 -0300)
commitc0b9a34bfbf946975be608e4e0dfb2d7e01fe586
treef2a3a66d582893b52c0c230f84dad684ebec65dd
parent66918102f88ebc892dc6f6340436138e228025e4
fix(build): auto-init submodules, auto-apply lwIP patch, fix corrupt patch

The build system now handles submodules and patches automatically so
a fresh 'git clone' + 'make' works without manual steps:

- Makefile: add LWIP_SENTINEL target that runs 'git submodule update
  --init --recursive' if lwIP sources are missing.
- Makefile: add .lwip_patched marker target that applies the lwIP
  volatile patch (patches/lwip-tcpip-volatile.patch) once after
  submodule init. Kernel build depends on this marker.
- Makefile: clean target now removes .lwip_patched marker.
- patches/lwip-tcpip-volatile.patch: regenerated with correct hunk
  header (@@ -55,9 +55,9 @@ instead of broken @@ -55,8 +55,8 @@)
  and repo-root-relative paths (third_party/lwip/...).
- user/doom/Makefile: fix error message to reference 'git submodule
  update --init' instead of 'git clone'. Check for actual header file
  instead of just directory existence.
- .gitignore: add .lwip_patched marker, remove temp hello/hello.c.
.gitignore
Makefile
patches/lwip-tcpip-volatile.patch
user/doom/Makefile