build.ck 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*++
  2. Copyright (c) 2014 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. SD
  9. Abstract:
  10. This directory is responsible for building Secure Digital and MultiMedia
  11. Card host controller drivers.
  12. Author:
  13. Evan Green 16-Mar-2014
  14. Environment:
  15. Kernel
  16. --*/
  17. from menv import group, mconfig;
  18. function build() {
  19. var arch = mconfig.arch;
  20. var entries;
  21. var sdDrivers;
  22. if ((arch == "armv7") || (arch == "armv6")) {
  23. sdDrivers = [
  24. "drivers/sd/bcm2709:sdbm2709",
  25. "drivers/sd/omap4:sdomap4",
  26. "drivers/sd/rk32xx:sdrk32xx",
  27. "drivers/plat/ti/tps65217:tps65217"
  28. ];
  29. } else if ((arch == "x86") || (arch == "x64")) {
  30. sdDrivers = [
  31. "drivers/sd/core:sd"
  32. ];
  33. }
  34. entries = group("sd_drivers", sdDrivers);
  35. return entries;
  36. }