Commit Graph

28 Commits

Author SHA1 Message Date
Adam Duskett
06917fd5e8
libs/dahdi-linux: bump to latest git head
Add a new patch: 207-opvxa1200-unused-variable.patch which fixes
unused variable {pos,x,y} errors in the drivers/dahdi/opvxa1200/base.c
file.

Fixes compiling against linux >= 6.6

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
2024-04-16 12:19:04 -06:00
Robert Marko
22dd505025 treewide: refresh hashes after move to use ZSTD as default
With the recent move to using ZSTD as the default compression format for
packaging git repo clones we must refresh all of the hashes for the
packages feed as well.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-04-08 09:31:53 +02:00
Christian Marangi
c60658b7db
dahdi-linux: fix compilation for mips_24k arch
Fix compilation for mips_24k arch due to a define conflicts with ABS.

Patch has been proposed upstream and should be accepted.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-03-20 19:56:42 +01:00
Sebastian Kemper
178e4bce1a dahdi-linux: bump to latest git head
This compiles with newer kernels now.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2023-10-13 12:36:11 +02:00
Christian Marangi
afad179aae
dahdi-linux: add multiple patch fixing compilation warning
Add multiple patch fixing compilation warning and obvius code bug.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2023-05-12 20:27:48 +02:00
Sebastian Kemper
89a23c4340 dahdi-linux: fix Module.symvers handling
This sets PKG_EXTMOD_SUBDIRS so kernel.mk can find the DAHDI
Module.symvers file.

Also, this puts KERNEL_MAKE_FLAGS into the make flags. This way
Module.symvers files of other modules are made available, plus there is
no need anymore to specify ARCH and CROSS_COMPILE, as KERNEL_MAKE_FLAGS
already takes care of that.

TARGET_CONFIGURE_OPTS is dropped because this seems out of place
(configure vs. compile).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-02-20 12:09:33 +01:00
Ilya Lipnitskiy
ea67943314 dahdi-linux: patch to compile with linux >= 5.6
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-01 11:07:49 -08:00
Sebastian Kemper
8eea873217 dahdi-linux: clean up deps, remove unused var
The kernel versions are no longer supported by OpenWrt. And the variable
is never used.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-10-03 18:47:00 +02:00
Sebastian Kemper
86dd09fcbe dahdi-linux: add patch to fix 32bit targets
On some 32 bit targets dahdi-linux currently fails to build.

Examples:

ERROR: "__divdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__udivdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__moddi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: "__divdi3" [/builder/shared-workdir/build/sdk/build_dir/target-powerpc_8540_musl/linux-mpc85xx_generic/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!

or

ERROR: "__aeabi_ldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_uldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp_usb.ko] undefined!
ERROR: "__aeabi_ldivmod" [/store/buildbot/slave/shared-workdir/build/sdk/build_dir/target-arm_arm1176jzf-s+vfp_musl_eabi/linux-bcm27xx_bcm2708/dahdi-linux-3.1.0/drivers/dahdi/xpp/xpp.ko] undefined!

Problem was reported to upstream already by third party ([1]). Patch
attached to bug report is not sufficient.

This commit adds a patch from PLD Linux ([2]) to address the build
failures.

[1] https://issues.asterisk.org/jira/browse/DAHLIN-371
[2] https://github.com/pld-linux/dahdi-linux/blob/master/math64.patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-04-24 20:59:31 +02:00
Sebastian Kemper
416d1f6c24 dahdi-linux: bump to version 3.1.0
This commit provides compatibility with kernel 5.4.

Except for the version bump this commit updates the HFC-S PCI driver to
not rely on the macro "dahdi_pci_module" anymore, because it has been
removed upstream in commit 4af6f69.

Also, a patch is added that makes the include of "<linux/pci-aspm.h>"
conditional on the kernel version, because starting with kernel 5.4 this
header has been removed and its contents merged into "pci.h".

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-03-19 18:39:22 +01:00
Sebastian Kemper
183ad6c145 dahdi-linux: bump to 3.0.0
This commit goes back from using a git checkout to using a regular
upstream tarball. Version bumped to 3.0.0 which works with kernels
equal to or greater than 4.15. Patches refreshed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-18 20:10:39 +02:00
Sebastian Kemper
b4392fbc2e dahdi-linux: clean up make flags
Remove all flags/variables that are not used at all. Remove some ':'
that are not needed in the context.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-24 10:10:18 +01:00
Sebastian Kemper
a3d53ad562 dahdi-linux: include linux/uaccess.h rather than asm/uaccess.h
Starting with 4.12 there are module build errors due to the
arch-specific uaccess.h using a macro defined in the generic include.
The generic include has been around since 2.6.18 and has always included
asm/uaccess.h, so switch to using the generic include for all kernels
which have it.

Example build failure:

    CC [M]  /data/bowl-builder/mips64_octeon/build/sdk/build_dir/target-mips64_octeon_64_musl/linux-octeon/dahdi-linux-2.11.1-20180111/drivers/dahdi/wcb4xxp/base.o
  In file included from ../dahdi-linux-2.11.1-20180111/drivers/dahdi/wcb4xxp/base.c:38:0:
  ./arch/mips/include/asm/uaccess.h: In function 'eva_kernel_access':
  ./arch/mips/include/asm/uaccess.h:91:9: error: implicit declaration of function 'uaccess_kernel' [-Werror=implicit-function-declaration]
    return uaccess_kernel();
           ^
  cc1: some warnings being treated as errors

The same can currently be seen on arc_archs where also kernel 4.14.18 is
used.

The patch just follows what Ubuntu's Seth Forshee suggested for openafs,
which ran into the same problem. The commit message is largely just
copied from Seth's commit message as well :)

The issue has been reported to upstream here:

https://issues.asterisk.org/jira/browse/DAHLIN-360

The same patch has been uploaded there.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-12 21:57:06 +01:00
Sebastian Kemper
dffb87f93b dahdi-linux: update source to snapshot
Currently dahdi-linux fails to compile on targets that use kernel 4.14.
Changes were introduced in kernels 4.11 and 4.13 that cause these build
failures.

Update to an upstream git snapshot to fix the breakage.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-01 00:47:20 +01:00
Sebastian Kemper
8be8831d34 telephony: use PKG_HASH instead of PKG_MD5SUM
Use sha256 instead of md5 for download verification.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-10-08 10:31:59 +02:00
Sebastian Kemper
45ed7d4afc telephony: use https:// PKG_SOURCE_URLs where possible
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-10-08 10:11:02 +02:00
Daniel Golle
1bcf610666 dahdi-linux: update to 2.11.1
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-06-12 20:30:28 +02:00
Daniel Golle
6dd432b5be dahdi-linux: skip blob firmware download
DAHDI tries downloading firmware blobs from Digium's server which are
for hardware not supported by the OpenWrt package and those blobs are
licensed prohibiting redistribution. Thus there is no point in
downloading them at all, especially as the download failing frequently
causes build failures.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2016-01-19 11:15:31 +01:00
Daniel Golle
712a5972eb dahdi-linux: update to 2.10.2
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-08-19 12:53:20 +02:00
Vittorio G (VittGam)
bbf0cbf481 Avoid trying to load the echo module here
It would result in the warning "echo is already loaded" during package installation.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
2015-05-14 04:15:44 +02:00
Daniel Golle
d7e56822d7 dahdi-linux: backport changes needed for kernel 3.19 and 4.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-04-01 00:26:56 +02:00
Daniel Golle
370b9e5741 dahdi-linux: package dummy driver
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-04-01 00:26:47 +02:00
Daniel Golle
6a5771b9e3 dahdi-linux: fix oslec build
Depend on kmod-echo rather than building echo.ko as a part of
kmod-dahdi-echo-oslec.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-03-31 23:47:12 +02:00
Daniel Golle
fa31ad6b55 dahdi-linux: add support for HFC-S PCI BRI adapters
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-02-18 16:10:34 +01:00
Daniel Golle
72919acca8 dahdi-linux: fix build with kernel 3.15 and newer
smp_mb__after_clear_bit() was removed from newer kernels.
Use smp_mb__after_atomic() instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-02-13 01:33:52 +01:00
Daniel Golle
1efef5fee5 dahdi-linux: fix oct612x compile on some ARM targets
Unbreak dahdi-linux build at least for cns3xxx, kirkwood, mvebu and oxnas
by explicitely including slab.h in oct612x-user.c.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-01-08 03:24:22 +01:00
VittGam
bab10dec9f Fix indentation.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
2014-12-23 09:34:17 +01:00
VittGam
9154fb92da Directories renamed to respect the naming convention. ;)
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
2014-12-23 09:23:10 +01:00