Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. include $(TOPDIR)/mk/kernel.mk
  5. include $(TOPDIR)/mk/modules.mk
  6. include $(TOPDIR)/mk/kernel-build.mk
  7. include $(TOPDIR)/mk/image.mk
  8. LOADADDR:= 0x20008000
  9. kernel-install:
  10. gzip -9 < $(LINUX_DIR)/arch/arm/boot/Image > ${BUILD_DIR}/Image.gz
  11. mkimage -A arm -O linux -T kernel -C gzip \
  12. -a ${LOADADDR} -e ${LOADADDR} -d ${BUILD_DIR}/Image.gz \
  13. -n foxg20 $(TARGET_DIR)/boot/uImage $(MAKE_TRACE)
  14. @cp $(TARGET_DIR)/boot/uImage \
  15. $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel
  16. ifeq ($(FS),nfsroot)
  17. imageinstall: ${BIN_DIR}/${ROOTFSUSERTARBALL}
  18. @cp $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel \
  19. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  20. @echo
  21. @echo 'Type dhcp via u-boot prompt to load kernel'
  22. @echo 'After that type bootm to load the kernel'
  23. @echo 'Login as user root with password linux123 via ssh or console'
  24. endif
  25. ifeq ($(FS),ext2-block)
  26. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  27. @echo
  28. @echo "The RootFS tarball is:"
  29. @echo "$(BIN_DIR)/$(ROOTFSUSERTARBALL)"
  30. @echo 'Before booting from MicroSD card you need to set following u-boot environment variables:'
  31. @echo "setenv bootcmd 'mmc init; sleep 1; fatload mmc 0 0x22000000 uimage; bootm 0x22000000'"
  32. @echo
  33. @echo "Boot the board via network and use adkinstall."
  34. @echo "If you just want to update, use adkupdate."
  35. @echo 'Login as user root with password linux123 via ssh or console.'
  36. endif