Skip to content

Commit 1fec11b

Browse files
authored
Merge ALICE HLT changes.
2 parents d23e312 + 4eff283 commit 1fec11b

File tree

5 files changed

+33
-23
lines changed

5 files changed

+33
-23
lines changed

Makefile

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
DEBUG=true
2-
IPATH=/opt/pda
2+
IPATH=/usr
33

44
all:
55
find . -iname 'build_*' -exec make -C {} \;
@@ -33,26 +33,29 @@ dist: rpm
3333

3434
rpm: tarball
3535
./package/rpm/configure --version --prefix=$(IPATH)
36-
cp pda-`cat VERSION`.tar.gz package/rpm/
36+
cp libpda-`cat VERSION`.tar.gz package/rpm/
3737
make -C package/rpm/
38-
cp ${HOME}/rpmbuild/RPMS/x86_64/pda-*.rpm .
38+
cp ${HOME}/rpmbuild/RPMS/x86_64/libpda-`cat VERSION`*.rpm .
39+
make -C patches/linux_uio rpm
40+
cp ${HOME}/rpmbuild/RPMS/x86_64/pda_kadapter-`uname -r`*.rpm .
3941

4042
tarball: mrproper
41-
rm -rf pda-`cat VERSION`.tar.gz
42-
tar -cf pda-`cat VERSION`.tar *
43+
rm -rf libpda-`cat VERSION`.tar.gz
44+
tar -cf libpda-`cat VERSION`.tar *
4345
mkdir dist
44-
tar -xf pda-`cat VERSION`.tar -C dist/
45-
rm -rf dist/pda.cbp dist/pda.layout
46+
tar -xf libpda-`cat VERSION`.tar -C dist/
47+
rm -rf dist/libpda.cbp dist/libpda.layout
4648
-find ./dist -name '.svn' -exec rm -rf {} \; >> /dev/null
47-
rm -rf pda-`cat VERSION`.tar
48-
mv dist pda-`cat VERSION`
49-
tar -cf pda-`cat VERSION`.tar pda-`cat VERSION`
50-
gzip pda-`cat VERSION`.tar
51-
rm -rf pda-`cat VERSION`
49+
rm -rf libpda-`cat VERSION`.tar
50+
mv dist libpda-`cat VERSION`
51+
tar -cf libpda-`cat VERSION`.tar libpda-`cat VERSION`
52+
gzip libpda-`cat VERSION`.tar
53+
rm -rf libpda-`cat VERSION`
5254

5355
mrproper: clean
5456
$(MAKE) PATH=$(PWD)/opt/bin/:$(PATH) -C ./test/ clean
5557
-rm -rf ./package/rpm/pda.spec
58+
-rm -rf patches/linux_uio/pda_kadapter.spec
5659
-rm -rf build_*
5760
-rm -rf opt
5861
-rm -rf dist
@@ -63,7 +66,8 @@ mrproper: clean
6366

6467
clean:
6568
find . -iname 'build_*' -exec make -C {} clean \;
66-
rm -rf pda*.tar.gz pda*.rpm
69+
rm -rf libpda*.tar.gz libpda*.rpm package/rpm/*.tar.gz
70+
rm -rf pda_kadapter*.rpm
6771

6872
count: mrproper
6973
wc -l `find . -iname '*.c' && find . -iname '*.h' && find . -iname '*.inc'`

package/rpm/pda.template

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
%define inst_prefix /opt
1+
%define inst_prefix /usr
2+
%define debug_package %{nil}
23

34
Summary: A library to access PCIe devices from userspace
4-
Name: pda
5+
Name: libpda
56
Version: 99.99.99
67
Release: 0
78
License: BSD
@@ -20,16 +21,19 @@ latency and high throughput PCIe devices from the userspace.
2021
%setup -q
2122

2223
%build
23-
%configure --prefix=%{inst_prefix}
24+
./configure --prefix=$RPM_BUILD_ROOT/%{_prefix}
2425
make
2526

2627
%install
2728
rm -rf $RPM_BUILD_ROOT
2829
make install DESTDIR=$RPM_BUILD_ROOT/%{inst_prefix}/
2930

31+
%post
32+
/sbin/ldconfig
33+
3034
%files
3135
%defattr(-,root,root,-)
32-
%{inst_prefix}/bin/*
33-
%{inst_prefix}/include/*
34-
%{inst_prefix}/lib/*
35-
%{inst_prefix}/share/*
36+
%{_bindir}/*
37+
%{_prefix}/lib/*
38+
%{_includedir}/*
39+
%{_datarootdir}/*

patches/linux_uio/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
KDIR := /lib/modules/$(shell uname -r)/build
2-
VERSION := $(shell cat uio_pci_dma.h | grep UIO_PCI_DMA_VERSION | cut -d\" -f2)
2+
VERSION := $(shell uname -r)-$(shell cat uio_pci_dma.h | grep UIO_PCI_DMA_VERSION | cut -d\" -f2)
33

44
all: prepare
55
KDIR=$(KDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) make -C build/

patches/linux_uio/pda_kadapter.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
%define debug_package %{nil}
2+
13
Summary: Kernel adapter for the PDA library
2-
Name: pda_kadapter
4+
Name: pda_kadapter-%(uname -r)
35
Version: 99.99.99
46
Release: 0
57
License: BSD

patches/linux_uio/uio_pci_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ probe
314314
dma_device->info.name = DRIVER_NAME;
315315
dma_device->info.version = UIO_PCI_DMA_VERSION;
316316
dma_device->info.irq = pci_device->irq;
317-
dma_device->info.irq_flags = IRQF_SHARED;
318317
dma_device->info.handler = irqhandler;
319318
dma_device->info.irq_flags = msi_enabled ? 0 : IRQF_SHARED;
320319

@@ -482,6 +481,7 @@ remove(struct pci_dev *pci_device)
482481

483482

484483
static DEFINE_PCI_DEVICE_TABLE(id_table) = {
484+
{PCI_DEVICE(0x10dc, 0x01a0) }, /* C-RORC PCI ID as registered at CERN */
485485
{PCI_DEVICE(0x10dc, 0xbeaf) }, /* FLIB intermediate PCI ID */
486486
{ 0, }
487487
};

0 commit comments

Comments
 (0)