Clean up libpayload lpgcc and lpas scripts.

lpgcc and lpas are called by payload Makefiles to properly
build and link with libpayload.

Made lpas use the proper crosscompile AS, as lpgcc does with CC.
Added V=1 support to help users debug the build.
Fix basename $CC and $AS expansion.

Change-Id: Ia4dc8ba53ba7565521a79f1520155f3307b09f85
Signed-off-by: Marc Jones <>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <>
2 files changed