Makefile 654 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright (C) 2010-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/image.mk
  9. NAND_BLOCKSIZE=2048-128k
  10. define Image/BuildKernel
  11. cat $(KDIR)/zImage $(DTS_DIR)/omap2420-n810.dtb > $(BIN_DIR)/$(IMG_PREFIX)-zImage
  12. chmod 0644 $(BIN_DIR)/$(IMG_PREFIX)-zImage
  13. endef
  14. define Image/Build/squashfs
  15. $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-root.$(1))
  16. endef
  17. define Image/Build
  18. $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-root.$(1)
  19. $(call Image/Build/$(1),$(1))
  20. endef
  21. $(eval $(call BuildImage))