summaryrefslogtreecommitdiff
path: root/target/alpha/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-31 18:47:16 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-31 18:47:25 +0100
commit3a96085b999220c4da0c5ef7d1f7ba26b9ddfb98 (patch)
tree77f1445aae2e6be5135594e95986b3278bbc061c /target/alpha/Makefile
parentcc28479164b8dc8afd4310716da32f16022f5974 (diff)
dec-multia: make netboot possible, add aboot bootloader
Diffstat (limited to 'target/alpha/Makefile')
-rw-r--r--target/alpha/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/alpha/Makefile b/target/alpha/Makefile
index 2d58e8014..5ce6bbea2 100644
--- a/target/alpha/Makefile
+++ b/target/alpha/Makefile
@@ -6,6 +6,9 @@ include $(ADK_TOPDIR)/mk/kernel-build.mk
include $(ADK_TOPDIR)/mk/image.mk
KERNEL:=$(LINUX_DIR)/vmlinux
+ifeq ($(ADK_TARGET_SYSTEM_DEC_MULTIA),y)
+KERNEL:=$(LINUX_DIR)/arch/alpha/boot/bootpfile
+endif
QEMU_ARGS:=-monitor null
QEMU_ARGS+=${ADK_QEMU_ARGS}
@@ -52,14 +55,22 @@ ifeq ($(ADK_TARGET_FS),nfsroot)
targethelp:
@echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
@echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
+ifeq ($(ADK_TARGET_SYSTEM_DEC_MULTIA),y)
+ @echo 'To netboot the Dec multia type following in SRM console:'
+ @echo '>>>boot ewa0 -protocols bootp -fl "root=/dev/nfs ip=dhcp"'
+endif
endif
# image creation and kernel install
kernel-strip:
+ifeq ($(ADK_TARGET_SYSTEM_DEC_MULTIA),y)
+ cp $(KERNEL) $(BUILD_DIR)/${TARGET_KERNEL}
+else
$(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+endif
kernel-install: kernel-strip
- @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
+ cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/${TARGET_KERNEL}
# filesystem specific targets
ifeq ($(ADK_TARGET_FS),archive)