1234567891011121314151617181920212223242526272829303132333435363738 |
- --- a/include/image.mk
- +++ b/include/image.mk
- @@ -728,8 +769,10 @@ endef
- define Device
- $(call Device/InitProfile,$(1))
- $(call Device/Init,$(1))
- + $(call Device/Init,$(PROFILE_SANITIZED))
- $(call Device/Default,$(1))
- $(call Device/$(1),$(1))
- + $(call Device/$(PROFILE_SANITIZED),$(1))
- $(call Device/Check,$(1))
- $(call Device/$(if $(DUMP),Dump,Build),$(1))
-
- --- a/target/linux/armsr/image/Makefile
- +++ b/target/linux/armsr/image/Makefile
- @@ -115,4 +115,21 @@ define Device/generic
- endef
- TARGET_DEVICES += generic
-
- +define Device/box
- + DEVICE_VENDOR :=
- + DEVICE_MODEL := 电视盒子全系列 / N1
- + DEVICE_PACKAGES := perlbase-base btrfs-progs luci-app-amlogic kmod-brcmfmac wpad-basic-mbedtls iw fdisk lsblk
- +endef
- +TARGET_DEVICES += box
- +
- + define Image/Build
- + if [ "$(PROFILE_SANITIZED)" == "box" ]; then \
- + export BIN_DIR=$(BIN_DIR); \
- + export DATE=$(DATE); \
- + cd /www/wwwroot/op.supes.top/bcache/armvirt/64/amlogic-s9xxx-openwrt; \
- + . ../modify_amlogic.sh; \
- + ./make -k 5.15.100 -b $(MORE) -s $(shell echo $$(($(ROOTFS_PARTSIZE)/1024/1024))) || true; \
- + fi
- + endef
- +
- $(eval $(call BuildImage))
|