#!/bin/bash # # Usage: ./build-module.sh path-to-my-embed-binary set -eu main() { local embedbin="$1" if [[ ! -f $embedbin ]] ; then echo "Can't find '$embedbin' to embed" >&2 exit 1 fi # Generate asm include file cat > eprog_user_blob.S <