[Solved] HAL recompilation?

I am having problems compiling changes in HAL source code (Namely applying a patch to “hal/src/photon/socket_hal.cpp” ). After I make the change and start compiling the firmware the compiler doesn’t compile the changes in the hal module into the binary. I have tried all sorts of ‘cleaning’ methods to get rid of any caches as well as trying to find specific make rules for hal but to no avail. Due to time constraints I cannot invest too much research time into this, perhaps someone can help me find out what I am doing wrong.
How can I recompile the HAL module and link it into the firmware binary?

Ah I somethimes amaze myself at how blind I can be.

The makefile for compiling the system binary is in the “modules” directory.