kbuild: refactor Makefile.asm-generic