build: Move the directory definitions to common.mk

Use a common definition instead of repeating it all over the place.

Change-Id: I41f9b018fa34d077579bc4fb16588c1eb744045d
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1241
Reviewed-by: Hendrik Lippek <hendrik.lippek@avionic-design.de>
packages/uclibc: Fix the output directory

Somehow the output dir used in the uclibc Makefile was broken,
but it still worked with the old build directory. Now it fails it the
build directory is outside the build tree. Fix this by using the
proper output directory.

Change-Id: Ica009888d5b63df44351fed60a5bfc052cb6d3f7
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1254
Reviewed-by: Hendrik Lippek <hendrik.lippek@avionic-design.de>
build: Rework the source patching

Use a common implementation to patch the packages source. It remove a
lot of code duplication and the dependency on quilt. Now the packages
only need to define a 'patches' variable that contain the list of the
patch to apply.

Change-Id: If71181a696ff21f59b3dd1a68596953c4dcc4d27
Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Reviewed-on: http://review.adnet.avionic-design.de/1243
Reviewed-by: Bert van Hall <bert.vanhall@avionic-design.de>
packages: ncurses: Build shared library

By default ncurses builds a statically linked libraray. This requires the host
to provide a statically linked glibc, which for example Arch Linux does not.
As we do not explicitly required a static ncurses switch to the shared ncurses
build.

Change-Id: If6027f37574176eaae9c455cbc744b06424f8793
Signed-off-by: Julian Scheel <julian@jusst.de>
Reviewed-on: http://review.adnet.avionic-design.de/1282
Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de>