Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. kernel-install:
  9. createinit:
  10. @-rm $(LINUX_DIR)/usr/initramfs_data.cpio.*
  11. $(SED) 's#^CONFIG_INITRAMFS_SOURCE.*#CONFIG_INITRAMFS_SOURCE="${BUILD_DIR}/${INITRAMFS_PIGGYBACK}"#' $(LINUX_DIR)/.config
  12. echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> $(LINUX_DIR)/.config
  13. echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config
  14. echo 'CONFIG_INITRAMFS_COMPRESSION_LZMA=y' >> $(LINUX_DIR)/.config
  15. echo N |$(MAKE) -C $(LINUX_DIR) V=0 CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
  16. CC="$(TARGET_CC)" oldconfig $(MAKE_TRACE)
  17. $(MAKE) -C $(LINUX_DIR) V=0 CROSS_COMPILE="$(TARGET_CROSS)" ARCH=$(ARCH) \
  18. CC="$(TARGET_CC)" $(MAKE_TRACE)
  19. $(CP) $(LINUX_DIR)/arch/x86/boot/bzImage \
  20. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  21. ifeq ($(FS),archive)
  22. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  23. @cp $(LINUX_DIR)/arch/x86/boot/bzImage \
  24. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  25. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  26. @echo 'The initramfs image is: ${BIN_DIR}/${ROOTFSTARBALL}'
  27. @echo 'Login as user root with password linux123 via ssh or console'
  28. endif
  29. ifeq ($(FS),initramfs-piggyback)
  30. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinit
  31. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  32. @echo 'Login as user root with password linux123 via ssh or console'
  33. endif