diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-10 16:47:55 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-10 16:47:55 +0100 |
commit | b3b32918faf1d63a84c68b24c866d8a849adfdae (patch) | |
tree | 934797e131208c68abd66d64eefe63ebb087ccec /target/foxboard/Makefile | |
parent | 940a3a2497867e7fb2044a437175619b65f04334 (diff) | |
parent | cfc200714ddfa6d76feb836c258b1135d91a8348 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/foxboard/Makefile')
-rw-r--r-- | target/foxboard/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/target/foxboard/Makefile b/target/foxboard/Makefile index a21647355..dd6e167c2 100644 --- a/target/foxboard/Makefile +++ b/target/foxboard/Makefile @@ -24,10 +24,13 @@ ifeq ($(FS),squashfs) imageinstall: $(BIN_DIR)/$(ROOTFSSQUASHFS) dd if=${BUILD_DIR}/${ROOTFSSQUASHFS} of=${BIN_DIR}/${ROOTFSSQUASHFS} \ bs=4063232 conv=sync $(MAKE_TRACE) - @echo - @echo Use sudo ./boot_linux -F -i $(ROOTFSSQUASHFS) to flash - @echo Do not forget to set network boot jumper, before you start the foxboard - @echo 'Login as user root with password linux123 via ssh or console' + @if [ $$(stat --format=%s ${BIN_DIR}/${ROOTFSSQUASHFS}) -gt 4063232 ];then \ + echo 'Image is too big!'; \ + else \ + echo 'Use sudo ./boot_linux -F -i $(ROOTFSSQUASHFS) to flash'; \ + echo 'Do not forget to set the network boot jumper, before you start the foxboard'; \ + echo 'Login as user root with password linux123 via ssh or console'; \ + fi endif ifeq ($(FS),nfsroot) imageinstall: ${BIN_DIR}/${ROOTFSTARBALL} |