package/sg3_utils: fix uclinux build
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 14 Aug 2016 17:45:36 +0000 (19:45 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Aug 2016 15:19:39 +0000 (17:19 +0200)
commit59472d3ba0841b7c41a08bad0f76f2c2fe5f0682
tree4d29e88ba8c03b296dceb37f0a99a5a8f2f3a5da
parent6d2533bdebdce21df13525cd723daa6837fcd1f5
package/sg3_utils: fix uclinux build

sg3_utils grep for '^linux' as the host OS to decide if we are
targetting Linux.

However, on noMMU targets, the host OS can be 'uclinux' instead of just
plain 'linux', which make sg3_util confused and thus it forgets to
include some source files in the build, resulting in link failures.

Fix that by ammending the regexp that recognises Linux. We now need to
run autoreconf.

Fixes:
    http://autobuild.buildroot.org/results/79a/79a572f67bafa6a007256a5f22529c2daabd5733/
    http://autobuild.buildroot.org/results/4f7/4f7ea4bb4c4c12ceb9cd08bfb6720386f5bdea0b/

[Peter: fix typos as pointed out by Arnout]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sg3_utils/0001-support-uclinux-as-a-linux.patch [new file with mode: 0644]
package/sg3_utils/sg3_utils.mk