Skip to content

Commit

Permalink
chore: add ability to generate one board jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesmitty committed Jul 3, 2024
1 parent 2818841 commit cd63d12
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hardware/panelize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

MODULE=${1%/}
OUTPUT=$2
PANELIZE=$3
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
MODULE_DIR="${SCRIPT_DIR}/${MODULE}"
PCB="${MODULE_DIR}/${MODULE}.kicad_pcb"

if [ -z "$MODULE" ]; then
echo "Usage: $0 <module> [output-dir]"
Expand All @@ -14,5 +16,8 @@ if [ -z "$OUTPUT" ]; then
OUTPUT=$HOME/pdusb-panelized
fi

kikit panelize -p "${MODULE_DIR}/panelize.json" -p :jlcTooling "${MODULE_DIR}/${MODULE}.kicad_pcb" "$OUTPUT/panel.kicad_pcb"
kikit fab jlcpcb --no-drc --assembly --schematic "${MODULE_DIR}/${MODULE}.kicad_sch" "$OUTPUT/panel.kicad_pcb" "$OUTPUT/"
if [ -z "$PANELIZE" ]; then
kikit panelize -p "${MODULE_DIR}/panelize.json" -p :jlcTooling "${MODULE_DIR}/${MODULE}.kicad_pcb" "$OUTPUT/panel.kicad_pcb"
PCB="$OUTPUT/panel.kicad_pcb"
fi
kikit fab jlcpcb --no-drc --assembly --schematic "${MODULE_DIR}/${MODULE}.kicad_sch" "$PCB" "$OUTPUT/"

0 comments on commit cd63d12

Please sign in to comment.