summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2014-05-22 16:26:29 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2015-03-19 16:58:17 +0000
commit3a3b25c8923c894b6475d7f819e55eb791c7efcc (patch)
treef5ab22b4933e69f74cec9f5cad1cd141d1c0db60
parent0ed14674a698bfff9cb1aeef5807f5f445feb775 (diff)
arm: Add conditional inclusion of LAN91x ethernet support
This patch adds support for including the SMSC LAN 91C111 driver support (as provided by the ARM Ltd. software models) by specifying the EDK2_ENABLE_SMSC_91X build variable. A per-platform addition to the .fdf is also required to actually include the driver, and network protocol support, in the produced image. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org> Conflicts: ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
-rw-r--r--ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc28
-rw-r--r--ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc9
2 files changed, 37 insertions, 0 deletions
diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc
new file mode 100644
index 000000000..f88392a3e
--- /dev/null
+++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-networking.fdf.inc
@@ -0,0 +1,28 @@
+#
+# Copyright (c) 2012-2014, ARM Limited. All rights reserved.
+#
+# This program and the accompanying materials
+# are licensed and made available under the terms and conditions
+# of the BSD License which accompanies this distribution.
+# The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+
+ #
+ # Networking stack
+ #
+ INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
+ INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
+ INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
+ INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
+ INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
+ INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
+ INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
+ INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
+ INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
+ INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
+ INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
+ INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
index 483e86983..1c0b2975f 100644
--- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
+++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
@@ -377,6 +377,11 @@
# Shell.
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
+!ifdef EDK2_ENABLE_SMSC_91X
+ # Ethernet (SMSC 91C111)
+ gEmbeddedTokenSpaceGuid.PcdLan91xDxeBaseAddress|0x1A000000
+!endif
+
[Components.common]
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
@@ -398,6 +403,10 @@
MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
+!ifdef EDK2_ENABLE_SMSC_91X
+ # SMSC LAN 91C111
+ EmbeddedPkg/Drivers/LAN91xDxe/LAN91xDxe.inf
+!endif
# ISP1761 USB OTG Controller
EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf