mkfs.jffs2 doesn't like short form of pad option with arg
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 22 Aug 2006 08:03:19 +0000 (08:03 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 22 Aug 2006 08:03:19 +0000 (08:03 -0000)
target/jffs2/jffs2root.mk

index 7640e63b9b9b0ff1cb55f170de84e14fb088fff8..f5622a8fb120585a2d5aa7d39f32680c978578a9 100644 (file)
@@ -7,9 +7,10 @@
 JFFS2_OPTS := -e $(strip $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE))
 
 ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PAD)),y)
-JFFS2_OPTS += -p
 ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE)),0x0)
-JFFS2_OPTS += $(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE))
+JFFS2_OPTS += --pad=$(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE))
+else
+JFFS2_OPTS += -p
 endif
 endif