[openwrt/openwrt] image: add FACTORY_SIZE to DEFAULT_DEVICE_VARS

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 13 13:28:52 PST 2023


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e5fe4019085607984036940fdc460677ccf892e2

commit e5fe4019085607984036940fdc460677ccf892e2
Author: Sander Vanheule <sander at svanheule.net>
AuthorDate: Fri Jan 13 22:16:58 2023 +0100

    image: add FACTORY_SIZE to DEFAULT_DEVICE_VARS
    
    FACTORY_SIZE is used as a device recipe variable on both the D-Link
    DIR-825-B1 and Trendnet TEW-673GRU, but is not listed as a device
    variable, neither globally, nor for ath79. Being assigned the same
    value, this probably hasn't caused any issues.
    
    Add FACTORY_SIZE to the global list DEFAULT_DEVICE_VARS, to ensure the
    variable is reset for every device, and to allow it to be used outside
    of the ath79 target.
    
    Signed-off-by: Sander Vanheule <sander at svanheule.net>
---
 include/image.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/image.mk b/include/image.mk
index 01bc3bda86..87ba60d954 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -419,7 +419,7 @@ DEFAULT_DEVICE_VARS := \
   DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \
   SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \
   UBOOT_PATH IMAGE_SIZE \
-  FACTORY_IMG_NAME \
+  FACTORY_IMG_NAME FACTORY_SIZE \
   DEVICE_PACKAGES DEVICE_COMPAT_VERSION DEVICE_COMPAT_MESSAGE \
   DEVICE_VENDOR DEVICE_MODEL DEVICE_VARIANT \
   DEVICE_ALT0_VENDOR DEVICE_ALT0_MODEL DEVICE_ALT0_VARIANT \




More information about the lede-commits mailing list