generic: add min_t/max_t macros from linux kernel

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
buildsystem: make sure arch is symlinked

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
lib: add stlinky code

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>