@ -27,18 +27,20 @@ endef
# to satisfy the boot loader on the device. The zImage is
# to satisfy the boot loader on the device. The zImage is
# the only real content.
# the only real content.
d e f i n e B u i l d / d n s 3 1 3 - i m a g e s
d e f i n e B u i l d / d n s 3 1 3 - i m a g e s
if [ -d $( BIN_DIR) /.boot ] ; then rm -rf $( BIN_DIR) /.boot ; fi
mkdir -p $@ .tmp/.boot
mkdir -p $( BIN_DIR) /.boot
echo "dummy" > $( BIN_DIR) /.boot/dummyfile
echo "dummy" > $@ .tmp/dummyfile
dns313-header $( BIN_DIR) /.boot/dummyfile \
$( BIN_DIR) /.boot/rootfs.tgz
dns313-header $@ .tmp/dummyfile \
dns313-header $( BIN_DIR) /.boot/dummyfile \
$@ .tmp/.boot/rootfs.tgz
$( BIN_DIR) /.boot/rd.gz
dns313-header $@ .tmp/dummyfile \
$@ .tmp/.boot/rd.gz
dns313-header $( IMAGE_KERNEL) \
dns313-header $( IMAGE_KERNEL) \
$( BIN_DIR) /.boot/zImage
$@ .tmp/.boot/zImage
rm -f $( BIN_DIR) /.boot/dummyfile
( cd $( BIN_DIR) ; tar -czf $@ .boot)
tar -czf $@ -C @.tmp .boot
if [ -d $( BIN_DIR) /.boot ] ; then rm -rf $( BIN_DIR) /.boot ; fi
rm -rf $@ .tmp
e n d e f
e n d e f
# Create the special NAS4220B and Itian Square One SQ201 image
# Create the special NAS4220B and Itian Square One SQ201 image