Makefile 1006 B

12345678910111213141516171819202122232425262728
  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. kernel-install:
  11. cp $(LINUX_DIR)/vmlinux $(BIN_DIR)/${DEVICE}-${ARCH}-kernel
  12. ifeq ($(FS),nfsroot)
  13. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  14. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  15. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  16. endif
  17. ifeq ($(FS),yaffs)
  18. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  19. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  20. @echo 'The root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  21. @echo 'Format your NAND with Routerboot, boot via NFS and'
  22. @echo 'then install kernel and filesystem:'
  23. @echo 'mount -t yaffs2 /dev/mtdblock0 /mnt'
  24. @echo 'cp ${DEVICE}-${ARCH}-kernel /mnt/kernel'
  25. endif