Build Automation Script
Write a shell script to automate the build of a firmware project. It must clean previous builds, compile source files, link output, and store artifacts in a build directory.
Constraints
- clean removes build/ directory.
- compile *.c into .o.
- link to firmware.elf.
- copy map and hex files.
- exit non-zero on compile error.
1#!/bin/bash2# TODO