It's always ${ARCHDIR}/kern.ldscript.
APP_TOOLS_PLATFORM= hw
APP_TOOLS_OBJS_BAKE= ${MAINOBJ}
-APP_TOOLS_LDSCRIPT_BAKE:= $(abspath ${LDSCRIPT})
+APP_TOOLS_LDSCRIPT_BAKE:= $(abspath arch/${ARCHDIR}/kern.ldscript)
APP_TOOLS_DIR:= $(abspath ../../app-tools)
include ${APP_TOOLS_DIR}/Makefile.app-tools
OBJS_BMK+= arch/x86/clock.o
OBJS_BMK+= arch/x86/hypervisor.o
-LDSCRIPT= arch/amd64/kern.ldscript
-
CFLAGS+= -mno-sse -mno-mmx
# squash all interrupts to a single level to
OBJS_BMK+= arch/arm/integrator/locore.o
OBJS_BMK+= arch/arm/integrator/machdep.o
OBJS_BMK+= arch/arm/integrator/serialcons.o
-LDSCRIPT= arch/arm/integrator/kern.ldscript
CPPFLAGS+= -Iarch/arm
OBJS_BMK+= arch/x86/clock.o
OBJS_BMK+= arch/x86/hypervisor.o
-LDSCRIPT= arch/i386/kern.ldscript
-
CFLAGS+= -mno-sse -mno-mmx -march=i686
arch/i386/locore.o: arch/i386/locore.S