rootfs.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- a/include/image.mk
  2. +++ b/include/image.mk
  3. @@ -728,8 +769,10 @@ endef
  4. define Device
  5. $(call Device/InitProfile,$(1))
  6. $(call Device/Init,$(1))
  7. + $(call Device/Init,$(PROFILE_SANITIZED))
  8. $(call Device/Default,$(1))
  9. $(call Device/$(1),$(1))
  10. + $(call Device/$(PROFILE_SANITIZED),$(1))
  11. $(call Device/Check,$(1))
  12. $(call Device/$(if $(DUMP),Dump,Build),$(1))
  13. --- a/target/linux/armsr/image/Makefile
  14. +++ b/target/linux/armsr/image/Makefile
  15. @@ -115,4 +115,21 @@ define Device/generic
  16. endef
  17. TARGET_DEVICES += generic
  18. +define Device/box
  19. + DEVICE_VENDOR :=
  20. + DEVICE_MODEL := 电视盒子全系列 / N1
  21. + DEVICE_PACKAGES := perlbase-base btrfs-progs luci-app-amlogic kmod-brcmfmac wpad-basic-mbedtls iw fdisk lsblk
  22. +endef
  23. +TARGET_DEVICES += box
  24. +
  25. + define Image/Build
  26. + if [ "$(PROFILE_SANITIZED)" == "box" ]; then \
  27. + export BIN_DIR=$(BIN_DIR); \
  28. + export DATE=$(DATE); \
  29. + cd /www/wwwroot/op.supes.top/bcache/armvirt/64/amlogic-s9xxx-openwrt; \
  30. + . ../modify_amlogic.sh; \
  31. + ./make -k 5.15.100 -b $(MORE) -s $(shell echo $$(($(ROOTFS_PARTSIZE)/1024/1024))) || true; \
  32. + fi
  33. + endef
  34. +
  35. $(eval $(call BuildImage))