Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FPGA Configuration Space
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
FPGA Configuration Space
Commits
9d9e3ece
Commit
9d9e3ece
authored
11 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
wishbone-serial: do not build for kernel v3.10+
parent
9108998e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pcie-wb/Makefile
+12
-20
12 additions, 20 deletions
pcie-wb/Makefile
pcie-wb/wishbone-serial.c
+1
-0
1 addition, 0 deletions
pcie-wb/wishbone-serial.c
with
13 additions
and
20 deletions
pcie-wb/Makefile
+
12
−
20
View file @
9d9e3ece
#export PATH=$PATH:/share/eldk/bin:/share/eldk/usr/bin
#export CROSS_COMPILE=ppc_4xxFP-
#export ARCH=powerpc
ifneq
($(KERNELRELEASE),)
# When Makefile is invoked from kernel build system, define objects
# This is useful if cross-compiling. Taken from kernel Makefile (CC changed)
#AS =$(CROSS_COMPILE)as
#LD =$(CROSS_COMPILE)ld
#CC =$(CROSS_COMPILE)gcc
#CPP =$(CC) -E
#AR =$(CROSS_COMPILE)ar
#NM =$(CROSS_COMPILE)nm
#STRIP =$(CROSS_COMPILE)strip
#OBJCOPY =$(CROSS_COMPILE)objcopy
#OBJDUMP =$(CROSS_COMPILE)objdump
obj-m
:=
pcie_wb.o wishbone.o spec_wb.o
# Only build wishbone-serial if it was missing
ifneq
($(CONFIG_USB_SERIAL_WISHBONE),m)
ifneq
($(CONFIG_USB_SERIAL_WISHBONE),y)
obj-m
+=
wishbone-serial.o
endif
endif
else
# When the Makefile is run directly, invoke the kernel build system
KERNELVER
?=
`
uname
-r
`
KERNELDIR
?=
/lib/modules/
$(
KERNELVER
)
/build
ifneq
($(KERNELRELEASE),)
obj-m
:=
pcie_wb.o wishbone.o spec_wb.o wishbone-serial.o
else
KERNELDIR
?=
/lib/modules/
$(
shell
uname
-r
)
/build
PWD
:=
$(
shell
pwd
)
all
:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
$(
PWD
)
...
...
@@ -29,8 +22,7 @@ install:
$(
MAKE
)
-C
$(
KERNELDIR
)
M
=
$(
PWD
)
modules_install
depmod
-a
endif
clean
:
rm
-rf
*
.o
*
~ core .depend .
*
.cmd
*
.ko
*
.mod.c .tmp_versions
endif
This diff is collapsed.
Click to expand it.
pcie-wb/wishbone-serial.c
+
1
−
0
View file @
9d9e3ece
...
...
@@ -36,6 +36,7 @@
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) && LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
#define API 7
/* v3.7 v3.8 v3.9 */
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
#error Enable and use the driver in your native kernel, not this one
#define API 8
/* v3.10+ */
#else
#error Unsupported kernel version
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment