wankeyun.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --- a/target/linux/at91/image/sama5.mk
  2. +++ b/target/linux/at91/image/sama5.mk
  3. @@ -111,8 +111,8 @@ TARGET_DEVICES += microchip_sama5d2-ptc-ek
  4. define Device/microchip_sama5d3-xplained
  5. $(Device/evaluation-dtb)
  6. - DEVICE_VENDOR := Microchip
  7. - DEVICE_MODEL := SAMA5D3 Xplained
  8. + DEVICE_VENDOR := 玩客云
  9. + DEVICE_MODEL := OneCloud
  10. DEVICE_DTS := at91-sama5d3_xplained
  11. SUPPORTED_DEVICES := atmel,sama5d3-xplained
  12. KERNEL_SIZE := 6144k
  13. --- a/target/linux/at91/image/Makefile
  14. +++ b/target/linux/at91/image/Makefile
  15. @@ -76,4 +76,15 @@ define Device/production-dtb
  16. append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
  17. endef
  18. +define Image/Build
  19. + if [ $(PROFILE_SANITIZED) == "microchip_sama5d3-xplained" ]; then \
  20. + export IMG_PREFIX="$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))"; \
  21. + export BIN_DIR=$(BIN_DIR); \
  22. + export TARGET_ROOTFS_DIR=$(TARGET_DIR); \
  23. + cd $(TOPDIR)/../packit; \
  24. + ./build.sh; \
  25. + gzip -f9n $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED)).img || true; \
  26. + fi
  27. +endef
  28. +
  29. $(eval $(call BuildImage))