Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Dmytro Levit
Software
Commits
6fdc46cb
Commit
6fdc46cb
authored
5 years ago
by
Patrick Robbe
Browse files
Options
Downloads
Patches
Plain Diff
New structure
parent
f116fb52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Pcie40Driver/Makefile
+44
-0
44 additions, 0 deletions
Pcie40Driver/Makefile
with
44 additions
and
0 deletions
Pcie40Driver/Makefile
0 → 100644
+
44
−
0
View file @
6fdc46cb
# Makefile for 2.6+ kernels
#
# Will compile and install for other kernel than the currently running,
# given the TARGET parameter (should be the name of a directory in
# /lib/modules) e.g.
# make TARGET=2.6.32.10-90.fc12.x86_64
#
DAQ40_VER_REL
?=
local-wip
ifneq
($(KERNELRELEASE),)
obj-m
:=
pcie40.o
pcie40-y
:=
pcie40_driver_common.o main.o ecs.o daq.o
ccflags-y
:=
-DDAQ40_VER_REL
=
\"
$(
DAQ40_VER_REL
)
\"
else
ifeq
($(TARGET),)
TARGET
:=
$(
shell
uname
-r
)
endif
PWD
:=
$(
shell
pwd
)
KDIR
:=
/lib/modules/
$(
TARGET
)
/build
default
:
@
echo
$(
TARGET
)
>
module.target
$(
MAKE
)
-C
$(
KDIR
)
SUBDIRS
=
$(
PWD
)
modules
default
:
pcie40_dma_regmap.h pcie40_ioctl.h pcie40_driver_common.h pcie40_driver_common.c ecs.h daq.h
default
:
main.c ecs.c daq.c
clean
:
@
rm
-f
*
.ko
*
.o .
*
.cmd modules.order Module.symvers
*
.mod.? .pcie40.
*
*
~
*
.unsigned
@
rm
-rf
.tmp_versions module.target
install
:
pcie40.ko
install
--mode
0755
-d
/lib/modules/
$(
shell
cat
module.target
)
/extra
install
--mode
0644 pcie40.ko /lib/modules/
$(
shell
cat
module.target
)
/extra
/sbin/depmod
-a
$(
shell
cat
module.target
)
pcie40.ko
:
$(
MAKE
)
ifneq
("$(wildcard pcie40_dma_regmap.cfg)","")
pcie40_dma_regmap.h
:
pcie40_dma_regmap.cfg
regmap_cfg_to_h.tcl P40_
$<
>
$@
2> /dev/null
endif
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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