-ifneq "$(MACHINE_TYPE)" "arm"
- echo -e ",$(SIZEboot),L,*\n,0,0\n,$(SIZEroot),L\n,0,0\n" \
- | sfdisk -D -uM -H 64 -S 32 $(IMGinsts)
-else
- echo -e ",$(SIZEboot),c,*\n,0,0\n,$(SIZEroot),L\n,0,0\n" \
- | sfdisk -D -uM -H 64 -S 32 $(IMGinsts)
-endif
+ echo -e "$(S_OFFSET),$(S_BOOT),$(PART_TYPE),*\n,0,0\n$$(( $(S_BOOT) + $(S_OFFSET) )),$(S_ROOT),L\n,0,0\n" \
+ | sfdisk -D -uS -H 64 -S 32 $(IMGinsts)