Makefile: introduce KSTRIPCMD to strip kernel modules
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 30 Nov 2010 15:19:59 +0000 (12:19 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 30 Nov 2010 15:28:41 +0000 (16:28 +0100)
commit0dc940cdeeaa1fae3510ff8a1b581f4ecf27b5c4
treeb696e633fb648282b47b96c52899e7a6e21cf865
parent87683d7e9c524800f8d90ecfbdc44818430e684f
Makefile: introduce KSTRIPCMD to strip kernel modules

When sstrip is selected it tries to strip kernel modules too.
Unfortunately this fails with a "unrecognized program segment header
size" error thus interrupting the build process.

We introduce a new $(KSTRIPCMD) strip command for this, being a regular
strip when sstrip is selected and an empty stub when not stripping.

At the same time get rid of the REMOVE_SECTION_* variables, as they are
only used once.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Makefile
package/Makefile.in