浏览代码

kirkwood: tidy up image Makefile

- use k in SIZE variables
- break long lines

Signed-off-by: Sungbo Eo <[email protected]>
Sungbo Eo 5 年之前
父节点
当前提交
4528128b05
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      target/linux/kirkwood/image/Makefile

+ 5 - 4
target/linux/kirkwood/image/Makefile

@@ -70,12 +70,13 @@ define Device/iom_ix2-200
   DEVICE_TYPE:=nas
   DEVICE_TYPE:=nas
   PAGESIZE := 512
   PAGESIZE := 512
   SUBPAGESIZE := 256
   SUBPAGESIZE := 256
-  BLOCKSIZE := 16KiB
+  BLOCKSIZE := 16k
   KERNEL_SIZE := 3072k
   KERNEL_SIZE := 3072k
   KERNEL_IN_UBI :=
   KERNEL_IN_UBI :=
   UBINIZE_OPTS := -E 5
   UBINIZE_OPTS := -E 5
-  IMAGE_SIZE := 32505856
-  IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | check-size $$$$(IMAGE_SIZE)
+  IMAGE_SIZE := 31744k
+  IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \
+	check-size $$$$(IMAGE_SIZE)
 endef
 endef
 TARGET_DEVICES += iom_ix2-200
 TARGET_DEVICES += iom_ix2-200
 
 
@@ -85,7 +86,7 @@ define Device/linksys_audi
   DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
   DEVICE_PACKAGES := kmod-mwl8k swconfig wpad-basic kmod-gpio-button-hotplug
   PAGESIZE := 512
   PAGESIZE := 512
   SUBPAGESIZE := 256
   SUBPAGESIZE := 256
-  BLOCKSIZE := 16KiB
+  BLOCKSIZE := 16k
   KERNEL_SIZE := 2624k
   KERNEL_SIZE := 2624k
   KERNEL_IN_UBI :=
   KERNEL_IN_UBI :=
   UBINIZE_OPTS := -E 5
   UBINIZE_OPTS := -E 5