1
0

build.ck 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*++
  2. Copyright (c) 2015 Minoca Corp.
  3. This file is licensed under the terms of the GNU General Public License
  4. version 3. Alternative licensing terms are available. Contact
  5. info@minocacorp.com for details. See the LICENSE file at the root of this
  6. project for complete licensing information.
  7. Module Name:
  8. GPIO
  9. Abstract:
  10. This directory contains drivers related to General Purpose Input/Output.
  11. Author:
  12. Evan Green 4-Aug-2015
  13. Environment:
  14. Kernel
  15. --*/
  16. from menv import group, mconfig;
  17. function build() {
  18. var arch = mconfig.arch;
  19. var entries;
  20. var gpioDrivers;
  21. if ((arch != "armv7") && (arch != "armv6")) {
  22. Core.raise(ValueError("UnexpectedArchitecture"));
  23. }
  24. gpioDrivers = [
  25. "drivers/gpio/broadcom/bc27:bc27gpio",
  26. "drivers/gpio/rockchip/rk32:rk32gpio",
  27. "drivers/gpio/ti/omap4:om4gpio",
  28. ];
  29. entries = group("gpio_drivers", gpioDrivers);
  30. return entries;
  31. }