From ae23b5914618bd618b1796bec2eaa52326131c1a Mon Sep 17 00:00:00 2001 From: Carsten Presser Date: Thu, 17 Sep 2020 21:52:09 +0200 Subject: [PATCH] Reorganize ipc_bga_generator.py Move .yaml files into subfolder Make script executable Add generator into to the description of the generated footprint --- scripts/Packages/Package_BGA/ipc_bga_generator.py | 2 +- scripts/Packages/Package_BGA/{ => size_definition}/bga.yaml | 0 .../Packages/Package_BGA/{ => size_definition}/bga_xilinx.yaml | 0 scripts/Packages/Package_BGA/{ => size_definition}/csp.yaml | 0 .../Packages/Package_BGA/{ => size_definition}/test_ipc.yaml | 0 5 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 scripts/Packages/Package_BGA/ipc_bga_generator.py rename scripts/Packages/Package_BGA/{ => size_definition}/bga.yaml (100%) rename scripts/Packages/Package_BGA/{ => size_definition}/bga_xilinx.yaml (100%) rename scripts/Packages/Package_BGA/{ => size_definition}/csp.yaml (100%) rename scripts/Packages/Package_BGA/{ => size_definition}/test_ipc.yaml (100%) diff --git a/scripts/Packages/Package_BGA/ipc_bga_generator.py b/scripts/Packages/Package_BGA/ipc_bga_generator.py old mode 100644 new mode 100755 index cf821217a..5fefcbda1 --- a/scripts/Packages/Package_BGA/ipc_bga_generator.py +++ b/scripts/Packages/Package_BGA/ipc_bga_generator.py @@ -212,7 +212,7 @@ def crtYdRound(x): f.append(Model(filename="{}Package_{}.3dshapes/{}.wrl".format( config['3d_model_prefix'], packageType, fpId))) - f.setDescription("{0}, {1}x{2}mm, {3} Ball, {4}x{5} Layout, {6}mm Pitch, {7}".format(fpParams["description"], pkgY, pkgX, balls, layoutX, layoutY, pitchString, fpParams["size_source"])) + f.setDescription("{0}, {1}x{2}mm, {3} Ball, {4}x{5} Layout, {6}mm Pitch ({7}), generated with kicad-footprint-generator ipc_bga_generator.py".format(fpParams["description"], pkgY, pkgX, balls, layoutX, layoutY, pitchString, fpParams["size_source"])) f.setTags("{} {} {}{}".format(packageType, balls, pitchString, additionalTag)) outputDir = 'Package_{lib_name:s}.pretty/'.format(lib_name=packageType) diff --git a/scripts/Packages/Package_BGA/bga.yaml b/scripts/Packages/Package_BGA/size_definition/bga.yaml similarity index 100% rename from scripts/Packages/Package_BGA/bga.yaml rename to scripts/Packages/Package_BGA/size_definition/bga.yaml diff --git a/scripts/Packages/Package_BGA/bga_xilinx.yaml b/scripts/Packages/Package_BGA/size_definition/bga_xilinx.yaml similarity index 100% rename from scripts/Packages/Package_BGA/bga_xilinx.yaml rename to scripts/Packages/Package_BGA/size_definition/bga_xilinx.yaml diff --git a/scripts/Packages/Package_BGA/csp.yaml b/scripts/Packages/Package_BGA/size_definition/csp.yaml similarity index 100% rename from scripts/Packages/Package_BGA/csp.yaml rename to scripts/Packages/Package_BGA/size_definition/csp.yaml diff --git a/scripts/Packages/Package_BGA/test_ipc.yaml b/scripts/Packages/Package_BGA/size_definition/test_ipc.yaml similarity index 100% rename from scripts/Packages/Package_BGA/test_ipc.yaml rename to scripts/Packages/Package_BGA/size_definition/test_ipc.yaml