sdkgen: add cards library

Change-Id: I35b4e84555f6e08a5965fc79cfb40c0f39a1445d