Added .gitignore

Signed-off-by: Stefano Babic <sbabic@denx.de>
Improved documentation

Signed-off-by: Stefano Babic <sbabic@denx.de>
Add option to LDFLAGS to export LUA functions

Add -E option to LDFLAGS to load dinamically modules
at runtime. The modules need LUA function that must
be exported.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Fix return values in parse_config

Before adding network capability, each recognized error
stopped the software, that exited with error code.
Now the webserver must wait for further requests.

Fix parse_config to be sure that an error code
is returned if the parser fails.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Add configurable external parser filename

Allow to configure the name of the external parser in LUA.
Fix parsing with external parser (tested with XML parser
in /examples).

Signed-off-by: Stefano Babic <sbabic@denx.de>
Add link to website into README

Signed-off-by: Stefano Babic <sbabic@denx.de>
Improved documentation

Add more cases, add handler documentation, and so on.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Documentation enhancements

Signed-off-by: Stefano Babic <sbabic@denx.de>
Documentation: better explain power-off cases

Signed-off-by: Stefano Babic <sbabic@denx.de>
Run spell checker / fix typos

Signed-off-by: Wolfgang Denk <wd@denx.de>
Make scripts working again

Calling scripts was not working after work
for publishing the project as OSS. A type occurs,
and no handler was found it.

The patch introduces some important decision:
- drop support of shell based scripts:
  only LUA scripts are supported. LUA scripts
  can exec any program and make shell scripts
  redundant.
- there is no difference in sw-description if
  a script is run before or after installing images.
  A script is not needed to be marked as preinstall or postinstall.
  Instead of this, a script contains "preinst" and/or
  "postinst" functions, that the main code automatically
  calls. In this way, the same script can be a pre-install
  and post-install script at the same time.

Documentation for the libconfig parser is updated as well.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Maintain the name of the project consistent

Sometimes the project is called "swupdate", sometimes
"SW-Update" or whatever.
Use "swupdate" for all occurencies.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Make scripts working again

Calling scripts was not working after work
for publishing the project as OSS. A type occurs,
and no handler was found it.

The patch introduces some important decision:
- drop support of shell based scripts:
  only LUA scripts are supported. LUA scripts
  can exec any program and make shell scripts
  redundant.
- there is no difference in sw-description if
  a script is run before or after installing images.
  A script is not needed to be marked as preinstall or postinstall.
  Instead of this, a script contains "preinst" and/or
  "postinst" functions, that the main code automatically
  calls. In this way, the same script can be a pre-install
  and post-install script at the same time.

Documentation for the libconfig parser is updated as well.

Signed-off-by: Stefano Babic <sbabic@denx.de>
Merge branch 'master' of /opt/tools/Projects/swupdate into master-local
Drop flash.h

Signed-off-by: Stefano Babic <sbabic@denx.de>
Use generic name for flash structure instead of nand_*

Signed-off-by: Stefano Babic <sbabic@denx.de>
Factorize MTD functions and move them to corelib

Signed-off-by: Stefano Babic <sbabic@denx.de>
Drop not used verify_image from flash handler

Signed-off-by: Stefano Babic <sbabic@denx.de>
Fix warning if HW compatibility is not set

Signed-off-by: Stefano Babic <sbabic@denx.de>
parse_config: detect flash handler

Detect if it is required to write a flash in raw mode.
The field "type" must be set to the handler "flash"
in the sw-description file.
The device field is set to the desired MTD device:
both format /dev/mtdX and simply mtdX are accepted.

Signed-off-by: Stefano Babic <sbabic@denx.de>