Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # $Id: Makefile 30 2008-09-04 13:31:09Z wbx $
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. include $(TOPDIR)/mk/kernel.mk
  7. include $(TOPDIR)/mk/modules.mk
  8. include $(TOPDIR)/mk/kernel-build.mk
  9. include $(TOPDIR)/mk/image.mk
  10. $(TOOLS_BUILD_DIR):
  11. mkdir -p $(TOOLS_BUILD_DIR)
  12. tools-compile: $(TOOLS_BUILD_DIR)
  13. $(MAKE) -C tools/mkfimage
  14. kernel-install: tools-compile
  15. PATH='${TARGET_PATH}' \
  16. mkfimage $(LINUX_DIR)/arch/cris/arch-v32/boot/zImage \
  17. $(BIN_DIR)/${DEVICE}-${ARCH}-kernel $(MAKE_TRACE)
  18. ifeq ($(FS),ext2)
  19. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  20. @echo
  21. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
  22. @echo "Use following command to create a QEMU Image:"
  23. @echo "sudo ./scripts/create-image.sh qemu.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  24. endif
  25. ifeq ($(FS),initramfs)
  26. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  27. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  28. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  29. endif