.gitignore update, etc
[hw/altusmetrum] / scheme / gnet-bomAM.scm
index 6ddc56d2c205818aadf3cc3d27f6c7cd4abd29d3..487a7a644df98f3696f00797cf4f129bd67994ef 100644 (file)
@@ -31,7 +31,9 @@
 
 (use-modules (ice-9 rdelim)
              (netlist backend-getopt)
+            (netlist error)
              (netlist schematic)
+             (netlist schematic toplevel)
              (srfi srfi-26))
 
 (define bomAM:open-input-file
@@ -59,7 +61,7 @@ filename)
            (begin
              (bomAM:printlist (append attriblist (list "quantity" "refdes")) #\,)
              (newline)
-             (bomAM:printbom (bomAM:components (schematic-packages toplevel-schematic)
+             (bomAM:printbom (bomAM:components (schematic-package-names (toplevel-schematic))
                                              attriblist)
                             0))))))