depot: add recipe for drivers_nic-imx8q_evk

Fixes #3452
This commit is contained in:
Christian Prochaska 2019-07-04 15:54:19 +02:00 committed by Christian Helmuth
parent 38dcdeeb04
commit 91c8e70bef
8 changed files with 42 additions and 2 deletions

View File

@ -0,0 +1,3 @@
Device drivers needed for scenarios
using one network interface

View File

@ -0,0 +1,2 @@
_/src/fec_nic_drv
_/raw/drivers_nic-imx8q_evk

View File

@ -0,0 +1 @@
2019-06-27 faeb36a0166e161f7f3565a03d62e025c980cd3c

View File

@ -0,0 +1,4 @@
content: drivers.config
drivers.config:
cp $(REP_DIR)/recipes/raw/drivers_nic-imx8q_evk/$@ $@

View File

@ -0,0 +1,28 @@
<config>
<parent-provides>
<service name="IRQ"/>
<service name="IO_MEM"/>
<service name="ROM"/>
<service name="PD"/>
<service name="RM"/>
<service name="CPU"/>
<service name="LOG"/>
<service name="Timer"/>
<service name="Gpio"/>
</parent-provides>
<default caps="100"/>
<service name="Nic">
<default-policy> <child name="nic_drv"/> </default-policy> </service>
<start name="nic_drv" caps="130">
<binary name="fec_nic_drv"/>
<resource name="RAM" quantum="20M"/>
<provides> <service name="Nic"/> </provides>
<config>
<card type="fsl,imx6sx-fec" mii="rgmii" irq="152" mmio="0x30be0000"/>
</config>
<route> <any-service> <parent/> </any-service> </route>
</start>
</config>

View File

@ -0,0 +1 @@
2019-06-27 583a26eccfd3241f727170f5d9451c9f2d55d3b4

View File

@ -1,12 +1,11 @@
LIB_MK := lib/mk/fec_nic_include.mk \
lib/mk/spec/arm/lx_kit_setjmp.mk
$(foreach SPEC,arm arm_64,lib/mk/spec/$(SPEC)/lx_kit_setjmp.mk)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/dde_linux)
MIRROR_FROM_REP_DIR := $(LIB_MK) \
lib/import/import-fec_nic_include.mk \
src/include src/lx_kit \
src/drivers/usb/include/spec/arm/platform_device/platform_device.h \
$(shell cd $(REP_DIR); find src/drivers/nic/fec -type f)
MIRROR_FROM_PORT_DIR := $(shell cd $(PORT_DIR); find src/drivers/nic/fec -type f | grep -v ".git")

View File

@ -483,6 +483,8 @@ proc drivers_nic_pkg { } {
if {[have_spec imx53_qsb]} { return drivers_nic-imx53_qsb }
if {[have_spec imx6q_sabrelite]} { return drivers_nic-imx6q_sabrelite }
if {[have_spec imx7d_sabre]} { return drivers_nic-imx7d_sabre }
if {[have_spec imx8q_evk]} { return drivers_nic-imx8q_evk }
puts stderr "drivers_nic package undefined for this build configuration"
exit 1