-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First commit for Broadcom Netmap driver #913
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,3 +136,23 @@ virtio_net.c@force := 1 | |
endef | ||
|
||
$(foreach d,$(filter virtio_net.c,$(E_DRIVERS)),$(eval $(call virtio_net))) | ||
|
||
# need to sub release string on the line here | ||
bnxt_en_ver := 1.10.2 | ||
|
||
define bnxt_driver | ||
$(1)@fetch := test -e @SRCDIR@/../bnxt_en-$(bnxt_en_ver)-$(2).tar.gz && cp @SRCDIR@/../bnxt_en-$(bnxt_en_ver)-$(2).tar.gz -P @SRCDIR@/ext-drivers | ||
$(1)@src := tar xf @SRCDIR@/ext-drivers/bnxt_en-$(bnxt_en_ver)-$(2).tar.gz && ln -s bnxt_en-$(bnxt_en_ver)-$(2) $(1) | ||
$(1)@build := [ -z "$(EXTRA_CFLAGS)" ] || make EXTRA_CFLAGS="$(EXTRA_CFLAGS)" -C $(1) @KOPTS@ KDIR=@KSRC@ | ||
$(1)@install := make -C $(1) EXTRA_CFLAGS="$(EXTRA_CFLAGS)" install INSTALL_MOD_PATH=@MODPATH@ NETMAP_DRIVER_SUFFIX=@DRVSUFFIX@ | ||
$(1)@clean := if [ -d $(1) ]; then make -C $(1) clean; fi NETMAP_DRIVER_SUFFIX=@DRVSUFFIX@ | ||
$(1)@distclean := rm -rf bnxt_en-$($(2)@pv) bnxt_en-$(bnxt_en_ver)-$(2) | ||
$(1)@force := 1 | ||
endef | ||
|
||
# need to sub version string on the line below | ||
$(eval $(call default,bnxt,226.0.85.0)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use the syntax already used for mellanox? I.e., remove
then you can use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry i did not get this, could you please elaborate or give what you think the final snippet should look like so i can try on my local setup? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is a patch (I have put the pv extraction in a common function):
|
||
bnxt@pv = $(firstword $(subst -, ,$(bnxt@v))) | ||
bnxt@conf = CONFIG_BNXT_EN | ||
|
||
$(foreach d,$(filter bnxt,$(E_DRIVERS)),$(eval $(call bnxt_driver,$d,$($(d)@v)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these sources cannot be downloaded automatically, I think we can just let the fetch fail with a message that points the user to the proper url, i.e., something like
The
configure
message already tells the user to put the file in@SRCDIR@/ext-drivers
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working with my management to figure out a way of getting a downloadable URL