source "arch/h8300/Kconfig.cpu"
+menu "Kernel Features"
+
+source "kernel/Kconfig.preempt"
+
+source "mm/Kconfig"
+
+endmenu
+
menu "Executable file formats"
source "fs/Kconfig.binfmt"
source "drivers/Kconfig"
-source "arch/h8300/Kconfig.ide"
-
source "fs/Kconfig"
source "arch/h8300/Kconfig.debug"
default 0x400000 if H8300_KANEBEBE
default 0x800000 if H8S_EDOSK2674 || H8S_SIM
-source "kernel/Kconfig.preempt"
-
-source "mm/Kconfig"
+config OFFSET
+ hex "Load offset"
+ depends on RAMKERNEL
+ default 0
endmenu
UIMAGE_LOADADDR = $(CONFIG_RAMBASE)
UIMAGE_ENTRYADDR = $(shell /bin/bash -c 'printf "0x%08x" \
- $$[$(CONFIG_RAMBASE) + 0x40]')
+ $$[$(CONFIG_RAMBASE) + $(CONFIG_OFFSET)]')
$(obj)/vmlinux.srec $(obj)/vmlinux.bin: vmlinux FORCE
$(call if_changed,objcopy)
#else
. = RAMTOP;
_ramstart = .;
- . = . + 0x40;
+ . = . + CONFIG_OFFSET;
#endif
_text = .;
HEAD_TEXT_SECTION