mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
sync with upstream (#10562)
* package: sync with upstream Removed: package/libs/libselinux/bcm27xx-userland (Already in package/utils/bcm27xx-userland) Signed-off-by: Linhui Liu <liulinhui36@gmail.com> * uclibc++: remove No package here depends on it. Furthermore, uClibc++ is a fairly buggy C++ library and seems to be relatively inactive upstream. It also lacks proper support for modern C++11 features. The main benefit of it is size: 66.6 KB vs 287.3 KB on mips24kc. Static linking and LTO can help bring the size down of packages that need it. Added warning message to uclibc++.mk Signed-off-by: Rosen Penev <rosenp@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> * target: sync with upstream Signed-off-by: Linhui Liu <liulinhui36@gmail.com> * toolchain: gcc: Remove gcc 10.x support This compiler is old and was never used by default in OpenWrt. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * ucode: update to latest Git HEAD 46d93c9 tests: fixup testcases 4c654df types: adjust double printing format eac2add compiler: fix bytecode for logical assignments of properties 3903b18 fs: add `realpath()` function 8366102 math: add isnan() function eef83d3 tests: relax sleep() test 394e901 lib: uc_json(): accept trailing whitespace when parsing strings 1867c8b uloop: terminate parent uloop in task child processes d2cc003 uci: auto-load package in `ctx.foreach()` and `ctx.get_first()` 6c5ee53 compiler: ensure that arrow functions with block bodies return no value fdc9b6a compiler: fix `??=`, `||=` and `&&=` logical assignment semantics 88dcca7 add cmake to install requires for debian Signed-off-by: Jo-Philipp Wich <jo@mein.io> * firewall4: update to latest Git HEAD 700a925 fw4: prevent null access when no ipsets are defined 6443ec7 config: drop input traffic by default 119ee1a ruleset: drop ctstate invalid traffic for masq-enabled zones Signed-off-by: Jo-Philipp Wich <jo@mein.io> * ustream-ssl: update to Git version 2022-12-07 9217ab4 ustream-openssl: Disable renegotiation in TLSv1.2 and earlier 2ce1d48 ci: fix building with i.MX6 SDK 584f1f6 ustream-openssl: wolfSSL: provide detailed information in debug builds aa8c48e cmake: add a possibility to set library version Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * tools/mpfr: import patch fixing macro bug Co-authored-by: Nick Hainke <vincent@systemli.org> Signed-off-by: Linhui Liu <liulinhui36@gmail.com> Signed-off-by: Linhui Liu <liulinhui36@gmail.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Jo-Philipp Wich <jo@mein.io> Co-authored-by: Rosen Penev <rosenp@gmail.com> Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de> Co-authored-by: Jo-Philipp Wich <jo@mein.io> Co-authored-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
40e8e1c3a9
commit
5a8163e07b
@ -21,7 +21,7 @@ menu "Global build settings"
|
|||||||
|
|
||||||
config JSON_OVERVIEW_IMAGE_INFO
|
config JSON_OVERVIEW_IMAGE_INFO
|
||||||
bool "Create JSON info file overview per target"
|
bool "Create JSON info file overview per target"
|
||||||
default BUILDBOT
|
default y
|
||||||
help
|
help
|
||||||
Create a JSON info file called profiles.json in the target
|
Create a JSON info file called profiles.json in the target
|
||||||
directory containing machine readable list of built profiles
|
directory containing machine readable list of built profiles
|
||||||
@ -111,7 +111,7 @@ menu "Global build settings"
|
|||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
This makes file checksums part of package metadata. It increases size
|
This makes file checksums part of package metadata. It increases size
|
||||||
but provides you with pkg_check command to check for flash coruptions.
|
but provides you with pkg_check command to check for flash corruptions.
|
||||||
|
|
||||||
config INCLUDE_CONFIG
|
config INCLUDE_CONFIG
|
||||||
bool "Include build configuration in firmware" if DEVEL
|
bool "Include build configuration in firmware" if DEVEL
|
||||||
@ -154,17 +154,12 @@ menu "Global build settings"
|
|||||||
Adds -g3 to the CFLAGS.
|
Adds -g3 to the CFLAGS.
|
||||||
|
|
||||||
config IPV6
|
config IPV6
|
||||||
bool
|
def_bool y
|
||||||
prompt "Enable IPv6 support in packages"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Enables IPv6 support in kernel (builtin) and packages.
|
|
||||||
|
|
||||||
comment "Stripping options"
|
comment "Stripping options"
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Binary stripping method"
|
prompt "Binary stripping method"
|
||||||
default USE_STRIP if EXTERNAL_TOOLCHAIN
|
|
||||||
default USE_STRIP if USE_GLIBC
|
default USE_STRIP if USE_GLIBC
|
||||||
default USE_SSTRIP
|
default USE_SSTRIP
|
||||||
help
|
help
|
||||||
@ -221,20 +216,6 @@ menu "Global build settings"
|
|||||||
make the system libraries incompatible with most of the packages that are
|
make the system libraries incompatible with most of the packages that are
|
||||||
not selected during the build process.
|
not selected during the build process.
|
||||||
|
|
||||||
choice
|
|
||||||
prompt "Preferred standard C++ library"
|
|
||||||
default USE_LIBSTDCXX if USE_GLIBC
|
|
||||||
default USE_UCLIBCXX
|
|
||||||
help
|
|
||||||
Select the preferred standard C++ library for all packages that support this.
|
|
||||||
|
|
||||||
config USE_UCLIBCXX
|
|
||||||
bool "uClibc++"
|
|
||||||
|
|
||||||
config USE_LIBSTDCXX
|
|
||||||
bool "libstdc++"
|
|
||||||
endchoice
|
|
||||||
|
|
||||||
comment "Hardening build options"
|
comment "Hardening build options"
|
||||||
|
|
||||||
config PKG_CHECK_FORMAT_SECURITY
|
config PKG_CHECK_FORMAT_SECURITY
|
||||||
@ -390,4 +371,16 @@ menu "Global build settings"
|
|||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config SECCOMP
|
||||||
|
bool "Enable SECCOMP"
|
||||||
|
select KERNEL_SECCOMP
|
||||||
|
select PACKAGE_procd-seccomp
|
||||||
|
depends on (aarch64 || arm || armeb || mips || mipsel || mips64 || mips64el || i386 || powerpc || x86_64)
|
||||||
|
depends on !TARGET_uml
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This option enables seccomp kernel features to safely
|
||||||
|
execute untrusted bytecode and selects the seccomp-variants
|
||||||
|
of procd
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -95,6 +95,11 @@ menuconfig DEVEL
|
|||||||
Store ccache in this directory.
|
Store ccache in this directory.
|
||||||
If not set, uses './.ccache'
|
If not set, uses './.ccache'
|
||||||
|
|
||||||
|
config KERNEL_CFLAGS
|
||||||
|
string "Kernel extra CFLAGS" if DEVEL
|
||||||
|
default "-falign-functions=32" if TARGET_bcm53xx
|
||||||
|
default ""
|
||||||
|
|
||||||
config EXTERNAL_KERNEL_TREE
|
config EXTERNAL_KERNEL_TREE
|
||||||
string "Use external kernel tree" if DEVEL
|
string "Use external kernel tree" if DEVEL
|
||||||
default ""
|
default ""
|
||||||
|
@ -48,6 +48,7 @@ menu "Target Images"
|
|||||||
bool "xz"
|
bool "xz"
|
||||||
|
|
||||||
config TARGET_INITRAMFS_COMPRESSION_ZSTD
|
config TARGET_INITRAMFS_COMPRESSION_ZSTD
|
||||||
|
depends on !LINUX_5_4
|
||||||
bool "zstd"
|
bool "zstd"
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
@ -296,7 +297,7 @@ menu "Target Images"
|
|||||||
source "target/linux/*/image/Config.in"
|
source "target/linux/*/image/Config.in"
|
||||||
|
|
||||||
config TARGET_KERNEL_PARTSIZE
|
config TARGET_KERNEL_PARTSIZE
|
||||||
int "Kernel partition size (in MB)"
|
int "Kernel partition size (in MiB)"
|
||||||
depends on USES_BOOT_PART
|
depends on USES_BOOT_PART
|
||||||
default 8 if TARGET_apm821xx_sata
|
default 8 if TARGET_apm821xx_sata
|
||||||
default 64 if TARGET_bcm27xx
|
default 64 if TARGET_bcm27xx
|
||||||
@ -304,8 +305,8 @@ menu "Target Images"
|
|||||||
default 16
|
default 16
|
||||||
|
|
||||||
config TARGET_ROOTFS_PARTSIZE
|
config TARGET_ROOTFS_PARTSIZE
|
||||||
int "Root filesystem partition size (in MB)"
|
int "Root filesystem partition size (in MiB)"
|
||||||
depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS || TARGET_omap || TARGET_sunxi || TARGET_uml || TARGET_ramips
|
depends on USES_ROOTFS_PART || TARGET_ROOTFS_EXT4FS
|
||||||
default 400
|
default 400
|
||||||
help
|
help
|
||||||
Select the root filesystem partition size.
|
Select the root filesystem partition size.
|
||||||
|
@ -24,11 +24,6 @@ config KERNEL_PRINTK
|
|||||||
bool "Enable support for printk"
|
bool "Enable support for printk"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config KERNEL_CRASHLOG
|
|
||||||
bool "Crash logging"
|
|
||||||
depends on !(arm || powerpc || sparc || TARGET_uml || i386 || x86_64)
|
|
||||||
default y
|
|
||||||
|
|
||||||
config KERNEL_SWAP
|
config KERNEL_SWAP
|
||||||
bool "Support for paging of anonymous memory (swap)"
|
bool "Support for paging of anonymous memory (swap)"
|
||||||
default y if !SMALL_FLASH
|
default y if !SMALL_FLASH
|
||||||
@ -48,8 +43,7 @@ config KERNEL_DEBUG_FS
|
|||||||
|
|
||||||
config KERNEL_MIPS_FP_SUPPORT
|
config KERNEL_MIPS_FP_SUPPORT
|
||||||
bool
|
bool
|
||||||
default y
|
default y if TARGET_pistachio
|
||||||
depends on (mips || mipsel || mips64 || mips64el)
|
|
||||||
|
|
||||||
config KERNEL_ARM_PMU
|
config KERNEL_ARM_PMU
|
||||||
bool
|
bool
|
||||||
@ -87,6 +81,11 @@ config KERNEL_PROFILING
|
|||||||
Enable the extended profiling support mechanisms used by profilers such
|
Enable the extended profiling support mechanisms used by profilers such
|
||||||
as OProfile.
|
as OProfile.
|
||||||
|
|
||||||
|
config KERNEL_RPI_AXIPERF
|
||||||
|
bool "Compile the kernel with RaspberryPi AXI Performance monitors"
|
||||||
|
default y
|
||||||
|
depends on KERNEL_PERF_EVENTS && TARGET_bcm27xx
|
||||||
|
|
||||||
config KERNEL_UBSAN
|
config KERNEL_UBSAN
|
||||||
bool "Compile the kernel with undefined behaviour sanity checker"
|
bool "Compile the kernel with undefined behaviour sanity checker"
|
||||||
help
|
help
|
||||||
@ -115,6 +114,16 @@ config KERNEL_UBSAN_ALIGNMENT
|
|||||||
Enabling this option on architectures that support unaligned
|
Enabling this option on architectures that support unaligned
|
||||||
accesses may produce a lot of false positives.
|
accesses may produce a lot of false positives.
|
||||||
|
|
||||||
|
config KERNEL_UBSAN_BOUNDS
|
||||||
|
bool "Perform array index bounds checking"
|
||||||
|
depends on KERNEL_UBSAN
|
||||||
|
help
|
||||||
|
This option enables detection of directly indexed out of bounds array
|
||||||
|
accesses, where the array size is known at compile time. Note that
|
||||||
|
this does not protect array overflows via bad calls to the
|
||||||
|
{str,mem}*cpy() family of functions (that is addressed by
|
||||||
|
FORTIFY_SOURCE).
|
||||||
|
|
||||||
config KERNEL_UBSAN_NULL
|
config KERNEL_UBSAN_NULL
|
||||||
bool "Enable checking of null pointers"
|
bool "Enable checking of null pointers"
|
||||||
depends on KERNEL_UBSAN
|
depends on KERNEL_UBSAN
|
||||||
@ -122,6 +131,19 @@ config KERNEL_UBSAN_NULL
|
|||||||
This option enables detection of memory accesses via a
|
This option enables detection of memory accesses via a
|
||||||
null pointer.
|
null pointer.
|
||||||
|
|
||||||
|
config KERNEL_UBSAN_TRAP
|
||||||
|
bool "On Sanitizer warnings, abort the running kernel code"
|
||||||
|
depends on KERNEL_UBSAN
|
||||||
|
help
|
||||||
|
Building kernels with Sanitizer features enabled tends to grow the
|
||||||
|
kernel size by around 5%, due to adding all the debugging text on
|
||||||
|
failure paths. To avoid this, Sanitizer instrumentation can just
|
||||||
|
issue a trap. This reduces the kernel size overhead but turns all
|
||||||
|
warnings (including potentially harmless conditions) into full
|
||||||
|
exceptions that abort the running kernel code (regardless of context,
|
||||||
|
locks held, etc), which may destabilize the system. For some system
|
||||||
|
builders this is an acceptable trade-off.
|
||||||
|
|
||||||
config KERNEL_KASAN
|
config KERNEL_KASAN
|
||||||
bool "Compile the kernel with KASan: runtime memory debugger"
|
bool "Compile the kernel with KASan: runtime memory debugger"
|
||||||
select KERNEL_SLUB_DEBUG
|
select KERNEL_SLUB_DEBUG
|
||||||
@ -148,6 +170,30 @@ config KERNEL_KASAN_EXTRA
|
|||||||
compile time.
|
compile time.
|
||||||
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81715 has more
|
||||||
|
|
||||||
|
config KERNEL_KASAN_VMALLOC
|
||||||
|
bool "Back mappings in vmalloc space with real shadow memory"
|
||||||
|
depends on KERNEL_KASAN
|
||||||
|
help
|
||||||
|
By default, the shadow region for vmalloc space is the read-only
|
||||||
|
zero page. This means that KASAN cannot detect errors involving
|
||||||
|
vmalloc space.
|
||||||
|
|
||||||
|
Enabling this option will hook in to vmap/vmalloc and back those
|
||||||
|
mappings with real shadow memory allocated on demand. This allows
|
||||||
|
for KASAN to detect more sorts of errors (and to support vmapped
|
||||||
|
stacks), but at the cost of higher memory usage.
|
||||||
|
|
||||||
|
This option depends on HAVE_ARCH_KASAN_VMALLOC, but we can't
|
||||||
|
depend on that in here, so it is possible that enabling this
|
||||||
|
will have no effect.
|
||||||
|
|
||||||
|
if KERNEL_KASAN
|
||||||
|
config KERNEL_KASAN_GENERIC
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
config KERNEL_KASAN_SW_TAGS
|
||||||
|
def_bool n
|
||||||
|
endif
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Instrumentation type"
|
prompt "Instrumentation type"
|
||||||
@ -303,6 +349,19 @@ config KERNEL_PREEMPT_TRACER
|
|||||||
enabled. This option and the irqs-off timing option can be
|
enabled. This option and the irqs-off timing option can be
|
||||||
used together or separately.)
|
used together or separately.)
|
||||||
|
|
||||||
|
config KERNEL_HIST_TRIGGERS
|
||||||
|
bool "Histogram triggers"
|
||||||
|
depends on KERNEL_FTRACE
|
||||||
|
help
|
||||||
|
Hist triggers allow one or more arbitrary trace event fields to be
|
||||||
|
aggregated into hash tables and dumped to stdout by reading a
|
||||||
|
debugfs/tracefs file. They're useful for gathering quick and dirty
|
||||||
|
(though precise) summaries of event activity as an initial guide for
|
||||||
|
further investigation using more advanced tools.
|
||||||
|
|
||||||
|
Inter-event tracing of quantities such as latencies is also
|
||||||
|
supported using hist triggers under this option.
|
||||||
|
|
||||||
config KERNEL_DEBUG_KERNEL
|
config KERNEL_DEBUG_KERNEL
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
@ -314,6 +373,34 @@ config KERNEL_DEBUG_INFO
|
|||||||
help
|
help
|
||||||
This will compile your kernel and modules with debug information.
|
This will compile your kernel and modules with debug information.
|
||||||
|
|
||||||
|
config KERNEL_DEBUG_INFO_BTF
|
||||||
|
|
||||||
|
bool "Enable additional BTF type information"
|
||||||
|
default n
|
||||||
|
depends on !HOST_OS_MACOS
|
||||||
|
depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED
|
||||||
|
select DWARVES
|
||||||
|
help
|
||||||
|
Generate BPF Type Format (BTF) information from DWARF debug info.
|
||||||
|
Turning this on expects presence of pahole tool, which will convert
|
||||||
|
DWARF type info into equivalent deduplicated BTF type info.
|
||||||
|
|
||||||
|
Required to run BPF CO-RE applications.
|
||||||
|
|
||||||
|
config KERNEL_DEBUG_INFO_REDUCED
|
||||||
|
bool "Reduce debugging information"
|
||||||
|
default y
|
||||||
|
depends on KERNEL_DEBUG_INFO
|
||||||
|
help
|
||||||
|
If you say Y here gcc is instructed to generate less debugging
|
||||||
|
information for structure types. This means that tools that
|
||||||
|
need full debugging information (like kgdb or systemtap) won't
|
||||||
|
be happy. But if you merely need debugging information to
|
||||||
|
resolve line numbers there is no loss. Advantage is that
|
||||||
|
build directory object sizes shrink dramatically over a full
|
||||||
|
DEBUG_INFO build and compile times are reduced too.
|
||||||
|
Only works with newer gcc versions.
|
||||||
|
|
||||||
config KERNEL_DEBUG_LL_UART_NONE
|
config KERNEL_DEBUG_LL_UART_NONE
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
@ -327,6 +414,14 @@ config KERNEL_DEBUG_LL
|
|||||||
help
|
help
|
||||||
ARM low level debugging.
|
ARM low level debugging.
|
||||||
|
|
||||||
|
config KERNEL_DEBUG_VIRTUAL
|
||||||
|
bool "Compile the kernel with VM translations debugging"
|
||||||
|
select KERNEL_DEBUG_KERNEL
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable checks sanity checks to catch invalid uses of
|
||||||
|
virt_to_phys()/phys_to_virt() against the non-linear address space.
|
||||||
|
|
||||||
config KERNEL_DYNAMIC_DEBUG
|
config KERNEL_DYNAMIC_DEBUG
|
||||||
bool "Compile the kernel with dynamic printk"
|
bool "Compile the kernel with dynamic printk"
|
||||||
select KERNEL_DEBUG_FS
|
select KERNEL_DEBUG_FS
|
||||||
@ -368,6 +463,21 @@ config KERNEL_KPROBE_EVENTS
|
|||||||
bool
|
bool
|
||||||
default y if KERNEL_KPROBES
|
default y if KERNEL_KPROBES
|
||||||
|
|
||||||
|
config KERNEL_BPF_EVENTS
|
||||||
|
bool "Compile the kernel with BPF event support"
|
||||||
|
default n
|
||||||
|
select KERNEL_KPROBES
|
||||||
|
help
|
||||||
|
Allows to attach BPF programs to kprobe, uprobe and tracepoint events.
|
||||||
|
This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY
|
||||||
|
for sending data from BPF programs to user-space for post-processing
|
||||||
|
or logging.
|
||||||
|
|
||||||
|
config KERNEL_BPF_KPROBE_OVERRIDE
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
depends on KERNEL_KPROBES
|
||||||
|
|
||||||
config KERNEL_AIO
|
config KERNEL_AIO
|
||||||
bool "Compile the kernel with asynchronous IO support"
|
bool "Compile the kernel with asynchronous IO support"
|
||||||
default y if !SMALL_FLASH
|
default y if !SMALL_FLASH
|
||||||
@ -437,34 +547,22 @@ config KERNEL_PROVE_LOCKING
|
|||||||
select KERNEL_DEBUG_KERNEL
|
select KERNEL_DEBUG_KERNEL
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config KERNEL_LOCKUP_DETECTOR
|
config KERNEL_SOFTLOCKUP_DETECTOR
|
||||||
bool "Compile the kernel with detect Hard and Soft Lockups"
|
bool "Compile the kernel with detect Soft Lockups"
|
||||||
depends on KERNEL_DEBUG_KERNEL
|
depends on KERNEL_DEBUG_KERNEL
|
||||||
help
|
help
|
||||||
Say Y here to enable the kernel to act as a watchdog to detect
|
Say Y here to enable the kernel to act as a watchdog to detect
|
||||||
hard and soft lockups.
|
soft lockups.
|
||||||
|
|
||||||
Softlockups are bugs that cause the kernel to loop in kernel
|
Softlockups are bugs that cause the kernel to loop in kernel
|
||||||
mode for more than 20 seconds, without giving other tasks a
|
mode for more than 20 seconds, without giving other tasks a
|
||||||
chance to run. The current stack trace is displayed upon
|
chance to run. The current stack trace is displayed upon
|
||||||
detection and the system will stay locked up.
|
detection and the system will stay locked up.
|
||||||
|
|
||||||
Hardlockups are bugs that cause the CPU to loop in kernel mode
|
|
||||||
for more than 10 seconds, without letting other interrupts have a
|
|
||||||
chance to run. The current stack trace is displayed upon detection
|
|
||||||
and the system will stay locked up.
|
|
||||||
|
|
||||||
The overhead should be minimal. A periodic hrtimer runs to
|
|
||||||
generate interrupts and kick the watchdog task every 4 seconds.
|
|
||||||
An NMI is generated every 10 seconds or so to check for hardlockups.
|
|
||||||
|
|
||||||
The frequency of hrtimer and NMI events and the soft and hard lockup
|
|
||||||
thresholds can be controlled through the sysctl watchdog_thresh.
|
|
||||||
|
|
||||||
config KERNEL_DETECT_HUNG_TASK
|
config KERNEL_DETECT_HUNG_TASK
|
||||||
bool "Compile the kernel with detect Hung Tasks"
|
bool "Compile the kernel with detect Hung Tasks"
|
||||||
depends on KERNEL_DEBUG_KERNEL
|
depends on KERNEL_DEBUG_KERNEL
|
||||||
default KERNEL_LOCKUP_DETECTOR
|
default KERNEL_SOFTLOCKUP_DETECTOR
|
||||||
help
|
help
|
||||||
Say Y here to enable the kernel to detect "hung tasks",
|
Say Y here to enable the kernel to detect "hung tasks",
|
||||||
which are bugs that cause the task to be stuck in
|
which are bugs that cause the task to be stuck in
|
||||||
@ -944,6 +1042,19 @@ config KERNEL_IP_MROUTE
|
|||||||
Multicast routing requires a multicast routing daemon in
|
Multicast routing requires a multicast routing daemon in
|
||||||
addition to kernel support.
|
addition to kernel support.
|
||||||
|
|
||||||
|
if KERNEL_IP_MROUTE
|
||||||
|
|
||||||
|
config KERNEL_IP_MROUTE_MULTIPLE_TABLES
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
config KERNEL_IP_PIMSM_V1
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
config KERNEL_IP_PIMSM_V2
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# IPv6 configuration
|
# IPv6 configuration
|
||||||
#
|
#
|
||||||
@ -966,8 +1077,15 @@ if KERNEL_IPV6
|
|||||||
Multicast routing requires a multicast routing daemon in
|
Multicast routing requires a multicast routing daemon in
|
||||||
addition to kernel support.
|
addition to kernel support.
|
||||||
|
|
||||||
config KERNEL_IPV6_PIMSM_V2
|
if KERNEL_IPV6_MROUTE
|
||||||
def_bool n
|
|
||||||
|
config KERNEL_IPV6_MROUTE_MULTIPLE_TABLES
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
config KERNEL_IPV6_PIMSM_V2
|
||||||
|
def_bool y
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
config KERNEL_IPV6_SEG6_LWTUNNEL
|
config KERNEL_IPV6_SEG6_LWTUNNEL
|
||||||
bool "Enable support for lightweight tunnels"
|
bool "Enable support for lightweight tunnels"
|
||||||
@ -980,6 +1098,16 @@ if KERNEL_IPV6
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous network configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
config KERNEL_NET_L3_MASTER_DEV
|
||||||
|
bool "L3 Master device support"
|
||||||
|
help
|
||||||
|
This module provides glue between core networking code and device
|
||||||
|
drivers to support L3 master devices like VRF.
|
||||||
|
|
||||||
#
|
#
|
||||||
# NFS related symbols
|
# NFS related symbols
|
||||||
#
|
#
|
||||||
@ -1125,7 +1253,7 @@ config KERNEL_SQUASHFS_XATTR
|
|||||||
bool "Squashfs XATTR support"
|
bool "Squashfs XATTR support"
|
||||||
|
|
||||||
#
|
#
|
||||||
# compile optimiziation setting
|
# compile optimization setting
|
||||||
#
|
#
|
||||||
choice
|
choice
|
||||||
prompt "Compiler optimization level"
|
prompt "Compiler optimization level"
|
||||||
|
@ -1,16 +1,2 @@
|
|||||||
ifndef DUMP
|
$(warn uclibc++.mk is deprecated. Please remove it and CXX_DEPENDS)
|
||||||
ifdef __package_mk
|
CXX_DEPENDS = +libstdcpp
|
||||||
$(error uclibc++.mk must be included before package.mk)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
PKG_PREPARED_DEPENDS += CONFIG_USE_UCLIBCXX
|
|
||||||
CXX_DEPENDS = +USE_UCLIBCXX:uclibcxx +USE_LIBSTDCXX:libstdcpp
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_USE_UCLIBCXX),)
|
|
||||||
ifneq ($(CONFIG_CCACHE),)
|
|
||||||
TARGET_CXX_NOCACHE=g++-uc
|
|
||||||
else
|
|
||||||
TARGET_CXX=g++-uc
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
@ -8,15 +8,15 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=binutils
|
PKG_NAME:=binutils
|
||||||
PKG_VERSION:=2.35.2
|
PKG_VERSION:=2.38
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE_URL:=@GNU/binutils
|
PKG_SOURCE_URL:=@GNU/binutils
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_VERSION:=$(PKG_VERSION)
|
PKG_VERSION:=$(PKG_VERSION)
|
||||||
PKG_HASH:=dcd5b0416e7b0a9b24bed76cd8c6c132526805761863150a26d016415b8bdc7b
|
PKG_HASH:=e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=patch-libtool
|
||||||
PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof binutils ld libiberty gold intl
|
PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof binutils ld libiberty gold intl
|
||||||
PKG_REMOVE_FILES:=libtool.m4
|
PKG_REMOVE_FILES:=libtool.m4
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gdb
|
PKG_NAME:=gdb
|
||||||
PKG_VERSION:=11.2
|
PKG_VERSION:=12.1
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNU/gdb
|
PKG_SOURCE_URL:=@GNU/gdb
|
||||||
PKG_HASH:=1497c36a71881b8671a9a84a0ee40faab788ca30d7ba19d8463c3cc787152e32
|
PKG_HASH:=0e1793bf8f2b54d53f46dea84ccfd446f48f81b297b28c4f7fc017b818d69fed
|
||||||
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
From 1add37b567a7dee39d99f37b37802034c3fce9c4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andreas Schwab <schwab@linux-m68k.org>
|
||||||
|
Date: Sun, 20 Mar 2022 14:01:54 +0100
|
||||||
|
Subject: [PATCH] Add support for readline 8.2
|
||||||
|
|
||||||
|
In readline 8.2 the type of rl_completer_word_break_characters changed to
|
||||||
|
include const.
|
||||||
|
---
|
||||||
|
gdb/completer.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/gdb/completer.c
|
||||||
|
+++ b/gdb/completer.c
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
calling a hook instead so we eliminate the CLI dependency. */
|
||||||
|
#include "gdbcmd.h"
|
||||||
|
|
||||||
|
-/* Needed for rl_completer_word_break_characters() and for
|
||||||
|
+/* Needed for rl_completer_word_break_characters and for
|
||||||
|
rl_filename_completion_function. */
|
||||||
|
#include "readline/readline.h"
|
||||||
|
|
||||||
|
@@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_thr
|
||||||
|
rl_basic_quote_characters = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
- return rl_completer_word_break_characters;
|
||||||
|
+ return (char *) rl_completer_word_break_characters;
|
||||||
|
}
|
||||||
|
|
||||||
|
char *
|
@ -1,6 +1,6 @@
|
|||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -1300,13 +1300,13 @@ if test -z "$LD"; then
|
@@ -1314,13 +1314,13 @@ if test -z "$LD"; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -17,7 +17,7 @@
|
|||||||
AC_LANG_PUSH(C++)
|
AC_LANG_PUSH(C++)
|
||||||
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
AC_LINK_IFELSE([AC_LANG_SOURCE([
|
||||||
#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
||||||
@@ -1705,7 +1705,7 @@ AC_ARG_WITH(stage1-ldflags,
|
@@ -1719,7 +1719,7 @@ AC_ARG_WITH(stage1-ldflags,
|
||||||
# trust that they are doing what they want.
|
# trust that they are doing what they want.
|
||||||
if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
|
if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
|
||||||
-a "$have_static_libs" = yes; then
|
-a "$have_static_libs" = yes; then
|
||||||
@ -26,7 +26,7 @@
|
|||||||
fi])
|
fi])
|
||||||
AC_SUBST(stage1_ldflags)
|
AC_SUBST(stage1_ldflags)
|
||||||
|
|
||||||
@@ -1734,7 +1734,7 @@ AC_ARG_WITH(boot-ldflags,
|
@@ -1748,7 +1748,7 @@ AC_ARG_WITH(boot-ldflags,
|
||||||
# statically. But if the user explicitly specified the libraries to
|
# statically. But if the user explicitly specified the libraries to
|
||||||
# use, trust that they are doing what they want.
|
# use, trust that they are doing what they want.
|
||||||
if test "$poststage1_libs" = ""; then
|
if test "$poststage1_libs" = ""; then
|
||||||
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -5257,14 +5257,14 @@ if test -z "$LD"; then
|
@@ -5275,14 +5275,14 @@ if test -z "$LD"; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -56,7 +56,7 @@
|
|||||||
ac_ext=cpp
|
ac_ext=cpp
|
||||||
ac_cpp='$CXXCPP $CPPFLAGS'
|
ac_cpp='$CXXCPP $CPPFLAGS'
|
||||||
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
||||||
@@ -6149,7 +6149,7 @@ else
|
@@ -6167,7 +6167,7 @@ else
|
||||||
# trust that they are doing what they want.
|
# trust that they are doing what they want.
|
||||||
if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
|
if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
|
||||||
-a "$have_static_libs" = yes; then
|
-a "$have_static_libs" = yes; then
|
||||||
@ -65,7 +65,7 @@
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -6185,7 +6185,7 @@ else
|
@@ -6203,7 +6203,7 @@ else
|
||||||
# statically. But if the user explicitly specified the libraries to
|
# statically. But if the user explicitly specified the libraries to
|
||||||
# use, trust that they are doing what they want.
|
# use, trust that they are doing what they want.
|
||||||
if test "$poststage1_libs" = ""; then
|
if test "$poststage1_libs" = ""; then
|
||||||
|
@ -24,7 +24,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
|
|
||||||
--- a/gdbserver/linux-low.cc
|
--- a/gdbserver/linux-low.cc
|
||||||
+++ b/gdbserver/linux-low.cc
|
+++ b/gdbserver/linux-low.cc
|
||||||
@@ -5733,7 +5733,7 @@ linux_process_target::request_interrupt
|
@@ -5496,7 +5496,7 @@ linux_process_target::request_interrupt
|
||||||
{
|
{
|
||||||
/* Send a SIGINT to the process group. This acts just like the user
|
/* Send a SIGINT to the process group. This acts just like the user
|
||||||
typed a ^C on the controlling terminal. */
|
typed a ^C on the controlling terminal. */
|
||||||
|
@ -27,7 +27,8 @@ include $(INCLUDE_DIR)/nls.mk
|
|||||||
define Package/perf
|
define Package/perf
|
||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
CATEGORY:=Development
|
CATEGORY:=Development
|
||||||
DEPENDS:= +libelf +libdw +PACKAGE_libunwind:libunwind +libpthread +librt +objdump @!IN_SDK @!TARGET_arc770 @KERNEL_PERF_EVENTS
|
DEPENDS:= +libelf +libdw +PACKAGE_libunwind:libunwind +libpthread +librt +objdump @!IN_SDK @KERNEL_PERF_EVENTS \
|
||||||
|
+PACKAGE_libbfd:libbfd +PACKAGE_libopcodes:libopcodes
|
||||||
TITLE:=Linux performance monitoring tool
|
TITLE:=Linux performance monitoring tool
|
||||||
VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
|
VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
|
||||||
URL:=http://www.kernel.org
|
URL:=http://www.kernel.org
|
||||||
|
@ -9,17 +9,17 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=strace
|
PKG_NAME:=strace
|
||||||
PKG_VERSION:=5.16
|
PKG_VERSION:=6.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://strace.io/files/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://strace.io/files/$(PKG_VERSION)
|
||||||
PKG_HASH:=dc7db230ff3e57c249830ba94acab2b862da1fcaac55417e9b85041a833ca285
|
PKG_HASH:=92d720a666855e9f1c6a11512fd6e99674a82bbfe1442557815f2ce8e1293338
|
||||||
|
|
||||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
PKG_CPE_ID:=cpe:/a:paul_kranenburg:strace
|
PKG_CPE_ID:=cpe:/a:strace_project:strace
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
@ -29,6 +29,7 @@ PKG_CONFIG_DEPENDS := \
|
|||||||
CONFIG_STRACE_LIBUNWIND
|
CONFIG_STRACE_LIBUNWIND
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
HOST_CFLAGS += -I$(LINUX_DIR)/user_headers/include
|
HOST_CFLAGS += -I$(LINUX_DIR)/user_headers/include
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=trace-cmd
|
PKG_NAME:=trace-cmd
|
||||||
PKG_VERSION:=v2.9.1
|
PKG_VERSION:=v3.1.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/
|
||||||
PKG_HASH:=9404fc3cf540ea795304608068c9db6cdb38b90584c7f3c43249785913d54b38
|
PKG_HASH:=447e095dbdfb0d362ab8c2086d62d80c5a2ecf67aef09b8f6b0cc064c0e1bfb5
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
@ -21,42 +21,27 @@ define Package/trace-cmd
|
|||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
CATEGORY:=Development
|
CATEGORY:=Development
|
||||||
TITLE:=Linux trace command line utility
|
TITLE:=Linux trace command line utility
|
||||||
DEPENDS:=
|
DEPENDS:=+libtracefs +zlib
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/trace-cmd-extra
|
define Package/trace-cmd-extra
|
||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
CATEGORY:=Development
|
CATEGORY:=Development
|
||||||
TITLE:=Extra plugins for trace-cmd
|
TITLE:=Extra plugins for trace-cmd
|
||||||
DEPENDS:=
|
DEPENDS:=+libtraceevent-extra
|
||||||
endef
|
endef
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
NO_PYTHON=1 \
|
NO_PYTHON=1 \
|
||||||
NO_AUDIT=1 \
|
NO_AUDIT=1 \
|
||||||
|
NO_LIBZSTD=1 \
|
||||||
prefix=/usr
|
prefix=/usr
|
||||||
|
|
||||||
PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/traceevent/plugins
|
|
||||||
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
|
|
||||||
|
|
||||||
TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE
|
TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE
|
||||||
|
|
||||||
define Package/trace-cmd/install
|
define Package/trace-cmd/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/traceevent/plugins
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/traceevent/plugins
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/trace-cmd $(1)/usr/bin/
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/trace-cmd $(1)/usr/bin/
|
||||||
$(CP) \
|
|
||||||
$(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_MAIN)) \
|
|
||||||
$(1)/usr/lib/traceevent/plugins
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/trace-cmd-extra/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
|
||||||
$(CP) \
|
|
||||||
$$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \
|
|
||||||
$$(filter-out $(PLUGINS_MAIN), \
|
|
||||||
$$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \
|
|
||||||
$$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \
|
|
||||||
$(1)/usr/lib/traceevent/plugins
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,trace-cmd))
|
$(eval $(call BuildPackage,trace-cmd))
|
||||||
|
@ -1,104 +0,0 @@
|
|||||||
From 1a000636c1828eecdcec5360a51623ef4ffbff04 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Beniamin Sandu <beniaminsandu@gmail.com>
|
|
||||||
Date: Mon, 30 Nov 2020 14:27:55 +0200
|
|
||||||
Subject: trace-cmd: make it build against musl C library
|
|
||||||
|
|
||||||
* add some missing headers and macros
|
|
||||||
* set pthread affinity using pthread_setaffinity_np after creating the thread
|
|
||||||
instead of pthread_attr_setaffinity_np (which seems to not be implemented
|
|
||||||
in musl)
|
|
||||||
|
|
||||||
Tested using https://musl.cc/x86_64-linux-musl-native.tgz
|
|
||||||
|
|
||||||
Link: https://lore.kernel.org/linux-trace-devel/20201130122755.31000-1-beniaminsandu@gmail.com
|
|
||||||
|
|
||||||
Reviewed-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
|
|
||||||
Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
|
|
||||||
[ Fixed a whitespace issue ]
|
|
||||||
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
|
|
||||||
---
|
|
||||||
include/trace-cmd/trace-cmd.h | 1 +
|
|
||||||
lib/trace-cmd/include/trace-cmd-local.h | 1 +
|
|
||||||
lib/tracefs/tracefs-events.c | 1 +
|
|
||||||
tracecmd/include/trace-local.h | 1 +
|
|
||||||
tracecmd/trace-tsync.c | 16 +++++++++++-----
|
|
||||||
5 files changed, 20 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
--- a/include/trace-cmd/trace-cmd.h
|
|
||||||
+++ b/include/trace-cmd/trace-cmd.h
|
|
||||||
@@ -6,6 +6,7 @@
|
|
||||||
#ifndef _TRACE_CMD_H
|
|
||||||
#define _TRACE_CMD_H
|
|
||||||
|
|
||||||
+#include <pthread.h>
|
|
||||||
#include "traceevent/event-parse.h"
|
|
||||||
|
|
||||||
#define TRACECMD_MAGIC { 23, 8, 68 }
|
|
||||||
--- a/lib/trace-cmd/include/trace-cmd-local.h
|
|
||||||
+++ b/lib/trace-cmd/include/trace-cmd-local.h
|
|
||||||
@@ -26,5 +26,6 @@ void warning(const char *fmt, ...);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#include <byteswap.h>
|
|
||||||
|
|
||||||
#endif /* _TRACE_CMD_LOCAL_H */
|
|
||||||
--- a/lib/tracefs/tracefs-events.c
|
|
||||||
+++ b/lib/tracefs/tracefs-events.c
|
|
||||||
@@ -13,6 +13,7 @@
|
|
||||||
#include <errno.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
+#include <limits.h>
|
|
||||||
|
|
||||||
#include "kbuffer.h"
|
|
||||||
#include "tracefs.h"
|
|
||||||
--- a/tracecmd/include/trace-local.h
|
|
||||||
+++ b/tracecmd/include/trace-local.h
|
|
||||||
@@ -8,6 +8,7 @@
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <dirent.h> /* for DIR */
|
|
||||||
+#include <limits.h>
|
|
||||||
|
|
||||||
#include "trace-cmd.h"
|
|
||||||
#include "event-utils.h"
|
|
||||||
--- a/tracecmd/trace-tsync.c
|
|
||||||
+++ b/tracecmd/trace-tsync.c
|
|
||||||
@@ -104,13 +104,16 @@ int tracecmd_host_tsync(struct buffer_in
|
|
||||||
|
|
||||||
pthread_attr_init(&attrib);
|
|
||||||
pthread_attr_setdetachstate(&attrib, PTHREAD_CREATE_JOINABLE);
|
|
||||||
- if (!get_first_cpu(&pin_mask, &mask_size))
|
|
||||||
- pthread_attr_setaffinity_np(&attrib, mask_size, pin_mask);
|
|
||||||
|
|
||||||
ret = pthread_create(&instance->tsync_thread, &attrib,
|
|
||||||
tsync_host_thread, &instance->tsync);
|
|
||||||
- if (!ret)
|
|
||||||
+
|
|
||||||
+ if (!ret) {
|
|
||||||
+ if (!get_first_cpu(&pin_mask, &mask_size))
|
|
||||||
+ pthread_setaffinity_np(instance->tsync_thread, mask_size, pin_mask);
|
|
||||||
instance->tsync_thread_running = true;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if (pin_mask)
|
|
||||||
CPU_FREE(pin_mask);
|
|
||||||
pthread_attr_destroy(&attrib);
|
|
||||||
@@ -243,11 +246,14 @@ unsigned int tracecmd_guest_tsync(char *
|
|
||||||
pthread_attr_init(&attrib);
|
|
||||||
tsync->sync_proto = proto;
|
|
||||||
pthread_attr_setdetachstate(&attrib, PTHREAD_CREATE_JOINABLE);
|
|
||||||
- if (!get_first_cpu(&pin_mask, &mask_size))
|
|
||||||
- pthread_attr_setaffinity_np(&attrib, mask_size, pin_mask);
|
|
||||||
|
|
||||||
ret = pthread_create(thr_id, &attrib, tsync_agent_thread, tsync);
|
|
||||||
|
|
||||||
+ if (!ret) {
|
|
||||||
+ if (!get_first_cpu(&pin_mask, &mask_size))
|
|
||||||
+ pthread_setaffinity_np(*thr_id, mask_size, pin_mask);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
if (pin_mask)
|
|
||||||
CPU_FREE(pin_mask);
|
|
||||||
pthread_attr_destroy(&attrib);
|
|
@ -1,24 +0,0 @@
|
|||||||
--- a/lib/traceevent/plugins/plugin_mac80211.c
|
|
||||||
+++ b/lib/traceevent/plugins/plugin_mac80211.c
|
|
||||||
@@ -165,12 +165,15 @@ static int drv_config(struct trace_seq *
|
|
||||||
{ 2, "IDLE" },
|
|
||||||
{ 3, "QOS"},
|
|
||||||
);
|
|
||||||
- tep_print_num_field(s, " chan:%d/", event, "center_freq", record, 1);
|
|
||||||
- print_enum(s, event, "channel_type", data,
|
|
||||||
- { 0, "noht" },
|
|
||||||
- { 1, "ht20" },
|
|
||||||
- { 2, "ht40-" },
|
|
||||||
- { 3, "ht40+" });
|
|
||||||
+ tep_print_num_field(s, " chan:%d@", event, "control_freq", record, 1);
|
|
||||||
+ print_enum(s, event, "chan_width", data,
|
|
||||||
+ { 0, "20_noht" },
|
|
||||||
+ { 1, "20" },
|
|
||||||
+ { 2, "40" },
|
|
||||||
+ { 3, "80" },
|
|
||||||
+ { 4, "80p80" },
|
|
||||||
+ { 5, "160" });
|
|
||||||
+
|
|
||||||
trace_seq_putc(s, ' ');
|
|
||||||
SF("power_level");
|
|
||||||
|
|
@ -8,12 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=valgrind
|
PKG_NAME:=valgrind
|
||||||
PKG_VERSION:=3.16.1
|
PKG_VERSION:=3.20.0
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://sourceware.org/pub/valgrind/
|
PKG_SOURCE_URL:=https://sourceware.org/pub/valgrind/
|
||||||
PKG_HASH:=c91f3a2f7b02db0f3bc99479861656154d241d2fdb265614ba918cc6720a33ca
|
PKG_HASH:=8536c031dbe078d342f121fa881a9ecd205cb5a78e639005ad570011bdb9f3c6
|
||||||
|
|
||||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||||
PKG_LICENSE:=GPL-2.0+
|
PKG_LICENSE:=GPL-2.0+
|
||||||
@ -33,7 +33,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
define Package/valgrind
|
define Package/valgrind
|
||||||
SECTION:=devel
|
SECTION:=devel
|
||||||
CATEGORY:=Development
|
CATEGORY:=Development
|
||||||
DEPENDS:=@mips||mipsel||i386||x86_64||powerpc||arm_v7||aarch64 +libpthread +librt
|
DEPENDS:=@mips||mipsel||mips64||mips64el||i386||x86_64||powerpc||arm_v7||aarch64 +libpthread +librt
|
||||||
TITLE:=debugging and profiling tools for Linux
|
TITLE:=debugging and profiling tools for Linux
|
||||||
URL:=http://www.valgrind.org
|
URL:=http://www.valgrind.org
|
||||||
endef
|
endef
|
||||||
|
@ -0,0 +1,131 @@
|
|||||||
|
From 86ab9452bd10f08dbfa22d94e1155838f6f9f2e0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Hauke Mehrtens <hauke@hauke-m.de>
|
||||||
|
Date: Sun, 31 Oct 2021 23:11:11 +0100
|
||||||
|
Subject: [PATCH] mips: Fix new syscall numbers
|
||||||
|
|
||||||
|
The MIPS32 and MIPS64 O32 ABI are adding 4000 to all syscall numbers.
|
||||||
|
The MIPS64 N64 ABI adds 5000 to each syscall and the MIPS64 N32 ABI adds
|
||||||
|
6000 to each syscall number. We can not sue the shared file for MIPS and
|
||||||
|
have to define this for each sycall separately.
|
||||||
|
|
||||||
|
Without this change valgrind is not able to detect new syscalls like
|
||||||
|
clock_gettime64 correctly.
|
||||||
|
|
||||||
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
||||||
|
---
|
||||||
|
include/pub_tool_vkiscnums_asm.h | 3 ---
|
||||||
|
include/vki/vki-scnums-mips32-linux.h | 36 +++++++++++++++++++++++++++
|
||||||
|
include/vki/vki-scnums-mips64-linux.h | 32 ++++++++++++++++++++++++
|
||||||
|
3 files changed, 68 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
--- a/include/pub_tool_vkiscnums_asm.h
|
||||||
|
+++ b/include/pub_tool_vkiscnums_asm.h
|
||||||
|
@@ -63,15 +63,12 @@
|
||||||
|
# include "vki/vki-scnums-arm64-linux.h"
|
||||||
|
|
||||||
|
#elif defined(VGP_mips32_linux)
|
||||||
|
-# include "vki/vki-scnums-shared-linux.h"
|
||||||
|
-# include "vki/vki-scnums-32bit-linux.h"
|
||||||
|
# include "vki/vki-scnums-mips32-linux.h"
|
||||||
|
|
||||||
|
#elif defined(VGP_nanomips_linux)
|
||||||
|
# include "vki/vki-scnums-nanomips-linux.h"
|
||||||
|
|
||||||
|
#elif defined(VGP_mips64_linux)
|
||||||
|
-# include "vki/vki-scnums-shared-linux.h"
|
||||||
|
# include "vki/vki-scnums-mips64-linux.h"
|
||||||
|
|
||||||
|
#elif defined(VGP_x86_freebsd) || defined(VGP_amd64_freebsd)
|
||||||
|
--- a/include/vki/vki-scnums-mips32-linux.h
|
||||||
|
+++ b/include/vki/vki-scnums-mips32-linux.h
|
||||||
|
@@ -401,6 +401,42 @@
|
||||||
|
#define __NR_pkey_free (__NR_Linux + 365)
|
||||||
|
#define __NR_statx (__NR_Linux + 366)
|
||||||
|
|
||||||
|
+#define __NR_clock_gettime64 (__NR_Linux + 403)
|
||||||
|
+#define __NR_clock_settime64 (__NR_Linux + 404)
|
||||||
|
+#define __NR_clock_adjtime64 (__NR_Linux + 405)
|
||||||
|
+#define __NR_clock_getres_time64 (__NR_Linux + 406)
|
||||||
|
+#define __NR_clock_nanosleep_time64 (__NR_Linux + 407)
|
||||||
|
+#define __NR_timer_gettime64 (__NR_Linux + 408)
|
||||||
|
+#define __NR_timer_settime64 (__NR_Linux + 409)
|
||||||
|
+#define __NR_timerfd_gettime64 (__NR_Linux + 410)
|
||||||
|
+#define __NR_timerfd_settime64 (__NR_Linux + 411)
|
||||||
|
+#define __NR_utimensat_time64 (__NR_Linux + 412)
|
||||||
|
+#define __NR_pselect6_time64 (__NR_Linux + 413)
|
||||||
|
+#define __NR_ppoll_time64 (__NR_Linux + 414)
|
||||||
|
+#define __NR_io_pgetevents_time64 (__NR_Linux + 416)
|
||||||
|
+#define __NR_recvmmsg_time64 (__NR_Linux + 417)
|
||||||
|
+#define __NR_mq_timedsend_time64 (__NR_Linux + 418)
|
||||||
|
+#define __NR_mq_timedreceive_time64 (__NR_Linux + 419)
|
||||||
|
+#define __NR_semtimedop_time64 (__NR_Linux + 420)
|
||||||
|
+#define __NR_rt_sigtimedwait_time64 (__NR_Linux + 421)
|
||||||
|
+#define __NR_futex_time64 (__NR_Linux + 422)
|
||||||
|
+#define __NR_sched_rr_get_interval_time64 (__NR_Linux + 423)
|
||||||
|
+#define __NR_pidfd_send_signal (__NR_Linux + 424)
|
||||||
|
+#define __NR_io_uring_setup (__NR_Linux + 425)
|
||||||
|
+#define __NR_io_uring_enter (__NR_Linux + 426)
|
||||||
|
+#define __NR_io_uring_register (__NR_Linux + 427)
|
||||||
|
+#define __NR_open_tree (__NR_Linux + 428)
|
||||||
|
+#define __NR_move_mount (__NR_Linux + 429)
|
||||||
|
+#define __NR_fsopen (__NR_Linux + 430)
|
||||||
|
+#define __NR_fsconfig (__NR_Linux + 431)
|
||||||
|
+#define __NR_fsmount (__NR_Linux + 432)
|
||||||
|
+#define __NR_fspick (__NR_Linux + 433)
|
||||||
|
+
|
||||||
|
+#define __NR_clone3 (__NR_Linux + 435)
|
||||||
|
+#define __NR_close_range (__NR_Linux + 436)
|
||||||
|
+
|
||||||
|
+#define __NR_faccessat2 (__NR_Linux + 439)
|
||||||
|
+
|
||||||
|
/*
|
||||||
|
* Offset of the last Linux o32 flavoured syscall
|
||||||
|
*/
|
||||||
|
--- a/include/vki/vki-scnums-mips64-linux.h
|
||||||
|
+++ b/include/vki/vki-scnums-mips64-linux.h
|
||||||
|
@@ -363,6 +363,22 @@
|
||||||
|
#define __NR_pkey_free (__NR_Linux + 325)
|
||||||
|
#define __NR_statx (__NR_Linux + 326)
|
||||||
|
|
||||||
|
+#define __NR_pidfd_send_signal (__NR_Linux + 424)
|
||||||
|
+#define __NR_io_uring_setup (__NR_Linux + 425)
|
||||||
|
+#define __NR_io_uring_enter (__NR_Linux + 426)
|
||||||
|
+#define __NR_io_uring_register (__NR_Linux + 427)
|
||||||
|
+#define __NR_open_tree (__NR_Linux + 428)
|
||||||
|
+#define __NR_move_mount (__NR_Linux + 429)
|
||||||
|
+#define __NR_fsopen (__NR_Linux + 430)
|
||||||
|
+#define __NR_fsconfig (__NR_Linux + 431)
|
||||||
|
+#define __NR_fsmount (__NR_Linux + 432)
|
||||||
|
+#define __NR_fspick (__NR_Linux + 433)
|
||||||
|
+
|
||||||
|
+#define __NR_clone3 (__NR_Linux + 435)
|
||||||
|
+#define __NR_close_range (__NR_Linux + 436)
|
||||||
|
+
|
||||||
|
+#define __NR_faccessat2 (__NR_Linux + 439)
|
||||||
|
+
|
||||||
|
#elif defined(VGABI_N32)
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@ -702,6 +718,22 @@
|
||||||
|
#define __NR_pkey_free (__NR_Linux + 329)
|
||||||
|
#define __NR_statx (__NR_Linux + 330)
|
||||||
|
|
||||||
|
+#define __NR_pidfd_send_signal (__NR_Linux + 424)
|
||||||
|
+#define __NR_io_uring_setup (__NR_Linux + 425)
|
||||||
|
+#define __NR_io_uring_enter (__NR_Linux + 426)
|
||||||
|
+#define __NR_io_uring_register (__NR_Linux + 427)
|
||||||
|
+#define __NR_open_tree (__NR_Linux + 428)
|
||||||
|
+#define __NR_move_mount (__NR_Linux + 429)
|
||||||
|
+#define __NR_fsopen (__NR_Linux + 430)
|
||||||
|
+#define __NR_fsconfig (__NR_Linux + 431)
|
||||||
|
+#define __NR_fsmount (__NR_Linux + 432)
|
||||||
|
+#define __NR_fspick (__NR_Linux + 433)
|
||||||
|
+
|
||||||
|
+#define __NR_clone3 (__NR_Linux + 435)
|
||||||
|
+#define __NR_close_range (__NR_Linux + 436)
|
||||||
|
+
|
||||||
|
+#define __NR_faccessat2 (__NR_Linux + 439)
|
||||||
|
+
|
||||||
|
#else
|
||||||
|
#error unknown mips64 abi
|
||||||
|
#endif
|
@ -1,6 +1,6 @@
|
|||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -345,7 +345,7 @@ case "${host_os}" in
|
@@ -368,7 +368,7 @@ case "${host_os}" in
|
||||||
# Ok, this is linux. Check the kernel version
|
# Ok, this is linux. Check the kernel version
|
||||||
AC_MSG_CHECKING([for the kernel version])
|
AC_MSG_CHECKING([for the kernel version])
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ Last-Update: 2013-11-30
|
|||||||
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -252,7 +252,7 @@ case "${host_cpu}" in
|
@@ -275,7 +275,7 @@ case "${host_cpu}" in
|
||||||
ARCH_MAX="s390x"
|
ARCH_MAX="s390x"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
|
|
||||||
--- a/VEX/priv/guest_mips_helpers.c
|
--- a/VEX/priv/guest_mips_helpers.c
|
||||||
+++ b/VEX/priv/guest_mips_helpers.c
|
+++ b/VEX/priv/guest_mips_helpers.c
|
||||||
@@ -617,6 +617,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
@@ -616,6 +616,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
||||||
flt_op inst )
|
flt_op inst )
|
||||||
{
|
{
|
||||||
UInt ret = 0;
|
UInt ret = 0;
|
||||||
@ -22,7 +22,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
#if defined(__mips__)
|
#if defined(__mips__)
|
||||||
VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
|
VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
|
||||||
UInt loFsVal, hiFsVal, loFtVal, hiFtVal;
|
UInt loFsVal, hiFsVal, loFtVal, hiFtVal;
|
||||||
@@ -699,6 +700,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
@@ -698,6 +699,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -30,7 +30,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -708,6 +710,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
@@ -707,6 +709,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
||||||
flt_op inst )
|
flt_op inst )
|
||||||
{
|
{
|
||||||
UInt ret = 0;
|
UInt ret = 0;
|
||||||
@ -38,7 +38,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
#if defined(__mips__) && ((__mips == 64) || \
|
#if defined(__mips__) && ((__mips == 64) || \
|
||||||
(defined(__mips_isa_rev) && (__mips_isa_rev >= 2)))
|
(defined(__mips_isa_rev) && (__mips_isa_rev >= 2)))
|
||||||
#if defined(VGA_mips32)
|
#if defined(VGA_mips32)
|
||||||
@@ -860,6 +863,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
@@ -859,6 +862,7 @@ extern UInt mips_dirtyhelper_calculate_F
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -48,7 +48,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
|
|
||||||
--- a/coregrind/m_machine.c
|
--- a/coregrind/m_machine.c
|
||||||
+++ b/coregrind/m_machine.c
|
+++ b/coregrind/m_machine.c
|
||||||
@@ -1828,6 +1828,7 @@ Bool VG_(machine_get_hwcaps)( void )
|
@@ -2106,6 +2106,7 @@ Bool VG_(machine_get_hwcaps)( void )
|
||||||
we are using alternative way to determine FP mode */
|
we are using alternative way to determine FP mode */
|
||||||
ULong result = 0;
|
ULong result = 0;
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ This fixes the following error message when compiling with a GCC 10 MIPS BE 32:
|
|||||||
if (!VG_MINIMAL_SETJMP(env_unsup_insn)) {
|
if (!VG_MINIMAL_SETJMP(env_unsup_insn)) {
|
||||||
__asm__ volatile (
|
__asm__ volatile (
|
||||||
".set push\n\t"
|
".set push\n\t"
|
||||||
@@ -1845,6 +1846,9 @@ Bool VG_(machine_get_hwcaps)( void )
|
@@ -2123,6 +2124,9 @@ Bool VG_(machine_get_hwcaps)( void )
|
||||||
|
|
||||||
fpmode = (result != 0x3FF0000000000000ull);
|
fpmode = (result != 0x3FF0000000000000ull);
|
||||||
}
|
}
|
||||||
|
@ -565,6 +565,23 @@ endef
|
|||||||
$(eval $(call KernelPackage,veth))
|
$(eval $(call KernelPackage,veth))
|
||||||
|
|
||||||
|
|
||||||
|
define KernelPackage/vrf
|
||||||
|
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
||||||
|
TITLE:=Virtual Routing and Forwarding (Lite)
|
||||||
|
DEPENDS:=@KERNEL_NET_L3_MASTER_DEV
|
||||||
|
KCONFIG:=CONFIG_NET_VRF
|
||||||
|
FILES:=$(LINUX_DIR)/drivers/net/vrf.ko
|
||||||
|
AUTOLOAD:=$(call AutoLoad,30,vrf)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/vrf/description
|
||||||
|
This option enables the support for mapping interfaces into VRF's. The
|
||||||
|
support enables VRF devices.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,vrf))
|
||||||
|
|
||||||
|
|
||||||
define KernelPackage/slhc
|
define KernelPackage/slhc
|
||||||
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
SUBMENU:=$(NETWORK_SUPPORT_MENU)
|
||||||
HIDDEN:=1
|
HIDDEN:=1
|
||||||
|
@ -19,7 +19,6 @@ PKG_MD5SUM:=66ebbbf67e8a9463041846822b0a1692
|
|||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(SRC_PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(SRC_PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
|
||||||
PKG_LICENSE:=GPL-2.0+
|
PKG_LICENSE:=GPL-2.0+
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
@ -49,8 +48,6 @@ $(call Package/polarssl/Default/description)
|
|||||||
This package contains the PolarSSL library.
|
This package contains the PolarSSL library.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
-DCMAKE_BUILD_TYPE:String="Release" \
|
-DCMAKE_BUILD_TYPE:String="Release" \
|
||||||
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
|
-DUSE_SHARED_MBEDTLS_LIBRARY:Bool=ON \
|
||||||
|
@ -34,8 +34,10 @@ define Package/argp-standalone/description
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
|
CFLAGS="$(TARGET_CFLAGS) $(FPIC) -std=gnu89"
|
||||||
|
|
||||||
|
HOST_MAKE_FLAGS += \
|
||||||
|
CFLAGS="$(HOST_CFLAGS) $(FPIC) -std=gnu89"
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=gettext-full
|
PKG_NAME:=gettext-full
|
||||||
PKG_VERSION:=0.21
|
PKG_VERSION:=0.21.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNU/gettext
|
PKG_SOURCE_URL:=@GNU/gettext
|
||||||
PKG_HASH:=d20fcbb537e02dcf1383197ba05bd0734ef7bf5db06bdb241eb69b7d16b73192
|
PKG_HASH:=50dbc8f39797950aa2c98e939947c527e5ac9ebd2c1b99dd7b06ba33a6767ae6
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)
|
||||||
|
|
||||||
@ -24,8 +24,8 @@ PKG_CPE_ID:=cpe:/a:gnu:gettext
|
|||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_DEPENDS:=gettext-full/host
|
PKG_BUILD_DEPENDS:=gettext-full/host
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=0
|
||||||
HOST_BUILD_PARALLEL:=1
|
HOST_BUILD_PARALLEL:=0
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
@ -88,6 +88,11 @@ define Build/InstallDev
|
|||||||
$(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
|
$(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Host/Install
|
||||||
|
$(call Host/Install/Default)
|
||||||
|
$(LN) msgfmt $(STAGING_DIR_HOSTPKG)/bin/gmsgfmt
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/libintl-full/install
|
define Package/libintl-full/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so.* $(1)/usr/lib/
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
$(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \
|
$(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \
|
||||||
--- a/gettext-tools/man/Makefile.am
|
--- a/gettext-tools/man/Makefile.am
|
||||||
+++ b/gettext-tools/man/Makefile.am
|
+++ b/gettext-tools/man/Makefile.am
|
||||||
@@ -157,8 +157,7 @@ recode-sr-latin.1.html: recode-sr-latin.
|
@@ -158,8 +158,7 @@ recode-sr-latin.1.html: recode-sr-latin.
|
||||||
gettextize.1.html: gettextize.1
|
gettextize.1.html: gettextize.1
|
||||||
autopoint.1.html: autopoint.1
|
autopoint.1.html: autopoint.1
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
--- a/gettext-runtime/gnulib-m4/stddef_h.m4
|
--- a/gettext-runtime/gnulib-m4/stddef_h.m4
|
||||||
+++ b/gettext-runtime/gnulib-m4/stddef_h.m4
|
+++ b/gettext-runtime/gnulib-m4/stddef_h.m4
|
||||||
@@ -8,7 +8,7 @@ dnl with or without modifications, as lo
|
@@ -9,7 +9,7 @@ dnl A placeholder for <stddef.h>, for pl
|
||||||
AC_DEFUN([gl_STDDEF_H],
|
AC_DEFUN_ONCE([gl_STDDEF_H],
|
||||||
[
|
[
|
||||||
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
||||||
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
||||||
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
||||||
STDDEF_H=
|
|
||||||
|
|
||||||
dnl Test whether the type max_align_t exists and whether its alignment
|
dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
|
||||||
|
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||||
--- a/gettext-runtime/gnulib-m4/stdint.m4
|
--- a/gettext-runtime/gnulib-m4/stdint.m4
|
||||||
+++ b/gettext-runtime/gnulib-m4/stdint.m4
|
+++ b/gettext-runtime/gnulib-m4/stdint.m4
|
||||||
@@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
|
@@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
|
||||||
@ -22,7 +22,7 @@
|
|||||||
dnl macros.
|
dnl macros.
|
||||||
--- a/gettext-runtime/gnulib-m4/wchar_h.m4
|
--- a/gettext-runtime/gnulib-m4/wchar_h.m4
|
||||||
+++ b/gettext-runtime/gnulib-m4/wchar_h.m4
|
+++ b/gettext-runtime/gnulib-m4/wchar_h.m4
|
||||||
@@ -27,7 +27,7 @@ AC_DEFUN([gl_WCHAR_H],
|
@@ -27,7 +27,7 @@ AC_DEFUN_ONCE([gl_WCHAR_H],
|
||||||
|
|
||||||
AC_REQUIRE([gl_FEATURES_H])
|
AC_REQUIRE([gl_FEATURES_H])
|
||||||
|
|
||||||
@ -44,7 +44,7 @@
|
|||||||
[AC_COMPILE_IFELSE(
|
[AC_COMPILE_IFELSE(
|
||||||
--- a/gettext-runtime/gnulib-m4/wctype_h.m4
|
--- a/gettext-runtime/gnulib-m4/wctype_h.m4
|
||||||
+++ b/gettext-runtime/gnulib-m4/wctype_h.m4
|
+++ b/gettext-runtime/gnulib-m4/wctype_h.m4
|
||||||
@@ -22,7 +22,7 @@ AC_DEFUN([gl_WCTYPE_H],
|
@@ -22,7 +22,7 @@ AC_DEFUN_ONCE([gl_WCTYPE_H],
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_ISWCNTRL])
|
AC_SUBST([HAVE_ISWCNTRL])
|
||||||
|
|
||||||
@ -77,26 +77,6 @@
|
|||||||
[
|
[
|
||||||
AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
|
AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
|
||||||
[AC_COMPILE_IFELSE(
|
[AC_COMPILE_IFELSE(
|
||||||
--- a/gettext-runtime/intl/Makefile.am
|
|
||||||
+++ b/gettext-runtime/intl/Makefile.am
|
|
||||||
@@ -274,7 +274,7 @@ libgnuintl.h: $(srcdir)/libgnuintl.in.h
|
|
||||||
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
|
|
||||||
- -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \
|
|
||||||
+ -e 's,@''HAVE_NAMELESS_LOCALES''@,0,g' \
|
|
||||||
-e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
|
|
||||||
< $(srcdir)/libgnuintl.in.h \
|
|
||||||
| if test '@WOE32DLL@' = yes; then \
|
|
||||||
@@ -294,7 +294,7 @@ libintl.h: $(srcdir)/libgnuintl.in.h
|
|
||||||
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
|
|
||||||
- -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \
|
|
||||||
+ -e 's,@''HAVE_NAMELESS_LOCALES''@,0,g' \
|
|
||||||
-e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
|
|
||||||
< $(srcdir)/libgnuintl.in.h > libintl.h
|
|
||||||
MOSTLYCLEANFILES += libintl.h
|
|
||||||
--- a/gettext-runtime/libasprintf/configure.ac
|
--- a/gettext-runtime/libasprintf/configure.ac
|
||||||
+++ b/gettext-runtime/libasprintf/configure.ac
|
+++ b/gettext-runtime/libasprintf/configure.ac
|
||||||
@@ -76,8 +76,8 @@ dnl Checks for typedefs, structures, and
|
@@ -76,8 +76,8 @@ dnl Checks for typedefs, structures, and
|
||||||
@ -145,30 +125,6 @@
|
|||||||
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
|
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
|
||||||
AC_REQUIRE([gt_TYPE_INTMAX_T])
|
AC_REQUIRE([gt_TYPE_INTMAX_T])
|
||||||
AC_REQUIRE([gt_PRINTF_POSIX])
|
AC_REQUIRE([gt_PRINTF_POSIX])
|
||||||
--- a/gettext-tools/gnulib-m4/gnulib-comp.m4
|
|
||||||
+++ b/gettext-tools/gnulib-m4/gnulib-comp.m4
|
|
||||||
@@ -1843,8 +1843,8 @@ changequote([, ])dnl
|
|
||||||
AC_REQUIRE([gl_SOCKETS])
|
|
||||||
gl_TYPE_SOCKLEN_T
|
|
||||||
gl_STDALIGN_H
|
|
||||||
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
|
||||||
- AC_REQUIRE([gt_TYPE_WINT_T])
|
|
||||||
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
|
||||||
+ AC_REQUIRE([gt_TYPE_WINT_T_GT])
|
|
||||||
gl_FUNC_STRERROR_R
|
|
||||||
if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
|
|
||||||
AC_LIBOBJ([strerror_r])
|
|
||||||
--- a/gettext-tools/gnulib-m4/stddef_h.m4
|
|
||||||
+++ b/gettext-tools/gnulib-m4/stddef_h.m4
|
|
||||||
@@ -8,7 +8,7 @@ dnl with or without modifications, as lo
|
|
||||||
AC_DEFUN([gl_STDDEF_H],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
|
||||||
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
|
||||||
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
|
||||||
STDDEF_H=
|
|
||||||
|
|
||||||
dnl Test whether the type max_align_t exists and whether its alignment
|
|
||||||
--- a/gettext-tools/gnulib-m4/stdint.m4
|
--- a/gettext-tools/gnulib-m4/stdint.m4
|
||||||
+++ b/gettext-tools/gnulib-m4/stdint.m4
|
+++ b/gettext-tools/gnulib-m4/stdint.m4
|
||||||
@@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
|
@@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
|
||||||
@ -216,7 +172,7 @@
|
|||||||
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
|
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
|
||||||
--- a/gettext-tools/gnulib-m4/wchar_h.m4
|
--- a/gettext-tools/gnulib-m4/wchar_h.m4
|
||||||
+++ b/gettext-tools/gnulib-m4/wchar_h.m4
|
+++ b/gettext-tools/gnulib-m4/wchar_h.m4
|
||||||
@@ -27,7 +27,7 @@ AC_DEFUN([gl_WCHAR_H],
|
@@ -27,7 +27,7 @@ AC_DEFUN_ONCE([gl_WCHAR_H],
|
||||||
|
|
||||||
AC_REQUIRE([gl_FEATURES_H])
|
AC_REQUIRE([gl_FEATURES_H])
|
||||||
|
|
||||||
@ -238,7 +194,7 @@
|
|||||||
[AC_COMPILE_IFELSE(
|
[AC_COMPILE_IFELSE(
|
||||||
--- a/gettext-tools/gnulib-m4/wctype_h.m4
|
--- a/gettext-tools/gnulib-m4/wctype_h.m4
|
||||||
+++ b/gettext-tools/gnulib-m4/wctype_h.m4
|
+++ b/gettext-tools/gnulib-m4/wctype_h.m4
|
||||||
@@ -22,7 +22,7 @@ AC_DEFUN([gl_WCTYPE_H],
|
@@ -22,7 +22,7 @@ AC_DEFUN_ONCE([gl_WCTYPE_H],
|
||||||
fi
|
fi
|
||||||
AC_SUBST([HAVE_ISWCNTRL])
|
AC_SUBST([HAVE_ISWCNTRL])
|
||||||
|
|
||||||
@ -271,37 +227,6 @@
|
|||||||
[
|
[
|
||||||
AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
|
AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
|
||||||
[AC_COMPILE_IFELSE(
|
[AC_COMPILE_IFELSE(
|
||||||
--- a/gettext-tools/intl/Makefile.am
|
|
||||||
+++ b/gettext-tools/intl/Makefile.am
|
|
||||||
@@ -274,7 +274,7 @@ libgnuintl.h: $(srcdir)/libgnuintl.in.h
|
|
||||||
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
|
|
||||||
- -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \
|
|
||||||
+ -e 's,@''HAVE_NAMELESS_LOCALES''@,0,g' \
|
|
||||||
-e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
|
|
||||||
< $(srcdir)/libgnuintl.in.h \
|
|
||||||
| if test '@WOE32DLL@' = yes; then \
|
|
||||||
@@ -294,7 +294,7 @@ libintl.h: $(srcdir)/libgnuintl.in.h
|
|
||||||
-e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \
|
|
||||||
-e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \
|
|
||||||
- -e 's,@''HAVE_NAMELESS_LOCALES''@,@HAVE_NAMELESS_LOCALES@,g' \
|
|
||||||
+ -e 's,@''HAVE_NAMELESS_LOCALES''@,0,g' \
|
|
||||||
-e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \
|
|
||||||
< $(srcdir)/libgnuintl.in.h > libintl.h
|
|
||||||
MOSTLYCLEANFILES += libintl.h
|
|
||||||
--- a/libtextstyle/gnulib-m4/stddef_h.m4
|
|
||||||
+++ b/libtextstyle/gnulib-m4/stddef_h.m4
|
|
||||||
@@ -8,7 +8,7 @@ dnl with or without modifications, as lo
|
|
||||||
AC_DEFUN([gl_STDDEF_H],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
|
||||||
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
|
||||||
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
|
||||||
STDDEF_H=
|
|
||||||
|
|
||||||
dnl Test whether the type max_align_t exists and whether its alignment
|
|
||||||
--- a/libtextstyle/gnulib-m4/stdint.m4
|
--- a/libtextstyle/gnulib-m4/stdint.m4
|
||||||
+++ b/libtextstyle/gnulib-m4/stdint.m4
|
+++ b/libtextstyle/gnulib-m4/stdint.m4
|
||||||
@@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
|
@@ -15,7 +15,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
|
||||||
@ -349,7 +274,7 @@
|
|||||||
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
|
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
|
||||||
--- a/libtextstyle/gnulib-m4/wchar_h.m4
|
--- a/libtextstyle/gnulib-m4/wchar_h.m4
|
||||||
+++ b/libtextstyle/gnulib-m4/wchar_h.m4
|
+++ b/libtextstyle/gnulib-m4/wchar_h.m4
|
||||||
@@ -27,7 +27,7 @@ AC_DEFUN([gl_WCHAR_H],
|
@@ -27,7 +27,7 @@ AC_DEFUN_ONCE([gl_WCHAR_H],
|
||||||
|
|
||||||
AC_REQUIRE([gl_FEATURES_H])
|
AC_REQUIRE([gl_FEATURES_H])
|
||||||
|
|
||||||
@ -380,3 +305,38 @@
|
|||||||
[
|
[
|
||||||
AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
|
AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
|
||||||
[AC_COMPILE_IFELSE(
|
[AC_COMPILE_IFELSE(
|
||||||
|
--- a/gettext-tools/gnulib-m4/gnulib-comp.m4
|
||||||
|
+++ b/gettext-tools/gnulib-m4/gnulib-comp.m4
|
||||||
|
@@ -2218,8 +2218,8 @@ changequote([, ])dnl
|
||||||
|
AC_REQUIRE([gl_SOCKETLIB])
|
||||||
|
AC_REQUIRE([gl_SOCKETS])
|
||||||
|
gl_TYPE_SOCKLEN_T
|
||||||
|
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
||||||
|
- AC_REQUIRE([gt_TYPE_WINT_T])
|
||||||
|
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
||||||
|
+ AC_REQUIRE([gt_TYPE_WINT_T_GT])
|
||||||
|
gl_FUNC_STRERROR_R
|
||||||
|
AS_IF([test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1], [
|
||||||
|
AC_LIBOBJ([strerror_r])
|
||||||
|
--- a/libtextstyle/gnulib-m4/stddef_h.m4
|
||||||
|
+++ b/libtextstyle/gnulib-m4/stddef_h.m4
|
||||||
|
@@ -9,7 +9,7 @@ dnl A placeholder for <stddef.h>, for pl
|
||||||
|
AC_DEFUN_ONCE([gl_STDDEF_H],
|
||||||
|
[
|
||||||
|
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
||||||
|
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
||||||
|
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
||||||
|
|
||||||
|
dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
|
||||||
|
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||||
|
--- a/gettext-tools/gnulib-m4/stddef_h.m4
|
||||||
|
+++ b/gettext-tools/gnulib-m4/stddef_h.m4
|
||||||
|
@@ -9,7 +9,7 @@ dnl A placeholder for <stddef.h>, for pl
|
||||||
|
AC_DEFUN_ONCE([gl_STDDEF_H],
|
||||||
|
[
|
||||||
|
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
|
||||||
|
- AC_REQUIRE([gt_TYPE_WCHAR_T])
|
||||||
|
+ AC_REQUIRE([gt_TYPE_WCHAR_T_GT])
|
||||||
|
|
||||||
|
dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
|
||||||
|
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
|
||||||
|
@ -1,63 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2010 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_NAME:=gettext
|
|
||||||
PKG_RELEASE:=2
|
|
||||||
|
|
||||||
PKG_LICENSE:=FSFULLR
|
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
define Package/libintl
|
|
||||||
SECTION:=libs
|
|
||||||
CATEGORY:=Libraries
|
|
||||||
TITLE:=Stub header for the GNU Internationalization library
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Configure
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/libintl-stub/include
|
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/libintl.h $(1)/usr/lib/libintl-stub/include/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Prepare
|
|
||||||
mkdir -p $(HOST_BUILD_DIR)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Compile
|
|
||||||
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Install
|
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
|
|
||||||
$(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOSTPKG)/include/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/aclocal
|
|
||||||
$(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOSTPKG)/share/aclocal/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/libintl/install
|
|
||||||
$(INSTALL_DIR) $(1)/tmp
|
|
||||||
touch $(1)/tmp/.libintl-placeholder
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
|
||||||
$(eval $(call BuildPackage,libintl))
|
|
@ -1,7 +0,0 @@
|
|||||||
Each source file contains the following message:
|
|
||||||
|
|
||||||
Copyright (C) 1995-2010 Free Software Foundation, Inc.
|
|
||||||
This file is free software; the Free Software Foundation
|
|
||||||
gives unlimited permission to copy and/or distribute it,
|
|
||||||
with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
@ -1,53 +0,0 @@
|
|||||||
/*
|
|
||||||
* This code is lifted from http://permalink.gmane.org/gmane.linux.gentoo.embedded/3218
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _LIBINTL_H
|
|
||||||
#define _LIBINTL_H 1
|
|
||||||
|
|
||||||
#include <locale.h>
|
|
||||||
|
|
||||||
/* Undef gettext macros, if any... */
|
|
||||||
#undef gettext
|
|
||||||
#undef dgettext
|
|
||||||
#undef dcgettext
|
|
||||||
#undef ngettext
|
|
||||||
#undef dngettext
|
|
||||||
#undef dcngettext
|
|
||||||
#undef textdomain
|
|
||||||
#undef bindtextdomain
|
|
||||||
#undef bind_textdomain_codeset
|
|
||||||
|
|
||||||
/* part of locale.h */
|
|
||||||
/* #undef setlocale */
|
|
||||||
|
|
||||||
#undef _
|
|
||||||
#undef N_
|
|
||||||
|
|
||||||
/* Define gettext stubs that map back to the original strings */
|
|
||||||
#define gettext(String) (String)
|
|
||||||
#define dgettext(Domain, String) (String)
|
|
||||||
#define dcgettext(Domain, String, Type) (String)
|
|
||||||
|
|
||||||
#define ngettext(Singular, Plural, Count) \
|
|
||||||
((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
|
|
||||||
|
|
||||||
#define dngettext(Domain, Singular, Plural, Count) \
|
|
||||||
((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
|
|
||||||
|
|
||||||
#define dcngettext(Domain, Singular, Plural, Count, Category) \
|
|
||||||
((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
|
|
||||||
|
|
||||||
#define _(String) (String)
|
|
||||||
#define N_(String) String
|
|
||||||
|
|
||||||
#ifndef _LOCALE_H
|
|
||||||
/* #define setlocale(Category, Locale) ((char *)NULL) */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* No-ops for textdomain operations */
|
|
||||||
#define bindtextdomain(Domain, Directory) (Domain)
|
|
||||||
#define bind_textdomain_codeset(Domain, Codeset) (Codeset)
|
|
||||||
#define textdomain(String) (String) ?: "messages"
|
|
||||||
|
|
||||||
#endif /* _LIBINTL_H */
|
|
@ -1,21 +0,0 @@
|
|||||||
# codeset.m4 serial 4 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
dnl From Bruno Haible.
|
|
||||||
|
|
||||||
AC_DEFUN([AM_LANGINFO_CODESET],
|
|
||||||
[
|
|
||||||
AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
|
|
||||||
[AC_TRY_LINK([#include <langinfo.h>],
|
|
||||||
[char* cs = nl_langinfo(CODESET); return !cs;],
|
|
||||||
[am_cv_langinfo_codeset=yes],
|
|
||||||
[am_cv_langinfo_codeset=no])
|
|
||||||
])
|
|
||||||
if test $am_cv_langinfo_codeset = yes; then
|
|
||||||
AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
|
|
||||||
[Define if you have <langinfo.h> and nl_langinfo(CODESET).])
|
|
||||||
fi
|
|
||||||
])
|
|
@ -1,383 +0,0 @@
|
|||||||
# gettext.m4 serial 63 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
dnl Authors:
|
|
||||||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
||||||
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
|
|
||||||
|
|
||||||
dnl Macro to add for using GNU gettext.
|
|
||||||
|
|
||||||
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
|
|
||||||
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
|
|
||||||
dnl default (if it is not specified or empty) is 'no-libtool'.
|
|
||||||
dnl INTLSYMBOL should be 'external' for packages with no intl directory,
|
|
||||||
dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
|
|
||||||
dnl If INTLSYMBOL is 'use-libtool', then a libtool library
|
|
||||||
dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
|
|
||||||
dnl depending on --{enable,disable}-{shared,static} and on the presence of
|
|
||||||
dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
|
|
||||||
dnl $(top_builddir)/intl/libintl.a will be created.
|
|
||||||
dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
|
|
||||||
dnl implementations (in libc or libintl) without the ngettext() function
|
|
||||||
dnl will be ignored. If NEEDSYMBOL is specified and is
|
|
||||||
dnl 'need-formatstring-macros', then GNU gettext implementations that don't
|
|
||||||
dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
|
|
||||||
dnl INTLDIR is used to find the intl libraries. If empty,
|
|
||||||
dnl the value `$(top_builddir)/intl/' is used.
|
|
||||||
dnl
|
|
||||||
dnl The result of the configuration is one of three cases:
|
|
||||||
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
|
|
||||||
dnl and used.
|
|
||||||
dnl Catalog format: GNU --> install in $(datadir)
|
|
||||||
dnl Catalog extension: .mo after installation, .gmo in source tree
|
|
||||||
dnl 2) GNU gettext has been found in the system's C library.
|
|
||||||
dnl Catalog format: GNU --> install in $(datadir)
|
|
||||||
dnl Catalog extension: .mo after installation, .gmo in source tree
|
|
||||||
dnl 3) No internationalization, always use English msgid.
|
|
||||||
dnl Catalog format: none
|
|
||||||
dnl Catalog extension: none
|
|
||||||
dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
|
|
||||||
dnl The use of .gmo is historical (it was needed to avoid overwriting the
|
|
||||||
dnl GNU format catalogs when building on a platform with an X/Open gettext),
|
|
||||||
dnl but we keep it in order not to force irrelevant filename changes on the
|
|
||||||
dnl maintainers.
|
|
||||||
dnl
|
|
||||||
AC_DEFUN([AM_GNU_GETTEXT],
|
|
||||||
[
|
|
||||||
dnl Argument checking.
|
|
||||||
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
|
|
||||||
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
|
|
||||||
])])])])])
|
|
||||||
ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
|
|
||||||
[AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
|
|
||||||
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
|
|
||||||
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
|
|
||||||
])])])])
|
|
||||||
define([gt_included_intl],
|
|
||||||
ifelse([$1], [external],
|
|
||||||
ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
|
|
||||||
[yes]))
|
|
||||||
define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
|
|
||||||
gt_NEEDS_INIT
|
|
||||||
AM_GNU_GETTEXT_NEED([$2])
|
|
||||||
|
|
||||||
AC_REQUIRE([AM_PO_SUBDIRS])dnl
|
|
||||||
ifelse(gt_included_intl, yes, [
|
|
||||||
AC_REQUIRE([AM_INTL_SUBDIR])dnl
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
|
|
||||||
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
||||||
AC_REQUIRE([AC_LIB_RPATH])
|
|
||||||
|
|
||||||
dnl Sometimes libintl requires libiconv, so first search for libiconv.
|
|
||||||
dnl Ideally we would do this search only after the
|
|
||||||
dnl if test "$USE_NLS" = "yes"; then
|
|
||||||
dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
|
|
||||||
dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
|
|
||||||
dnl the configure script would need to contain the same shell code
|
|
||||||
dnl again, outside any 'if'. There are two solutions:
|
|
||||||
dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
|
|
||||||
dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
|
|
||||||
dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
|
|
||||||
dnl documented, we avoid it.
|
|
||||||
ifelse(gt_included_intl, yes, , [
|
|
||||||
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
|
|
||||||
gt_INTL_MACOSX
|
|
||||||
|
|
||||||
dnl Set USE_NLS.
|
|
||||||
AC_REQUIRE([AM_NLS])
|
|
||||||
|
|
||||||
ifelse(gt_included_intl, yes, [
|
|
||||||
BUILD_INCLUDED_LIBINTL=no
|
|
||||||
USE_INCLUDED_LIBINTL=no
|
|
||||||
])
|
|
||||||
LIBINTL=
|
|
||||||
LTLIBINTL=
|
|
||||||
POSUB=
|
|
||||||
|
|
||||||
dnl Add a version number to the cache macros.
|
|
||||||
case " $gt_needs " in
|
|
||||||
*" need-formatstring-macros "*) gt_api_version=3 ;;
|
|
||||||
*" need-ngettext "*) gt_api_version=2 ;;
|
|
||||||
*) gt_api_version=1 ;;
|
|
||||||
esac
|
|
||||||
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
|
|
||||||
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
|
|
||||||
|
|
||||||
dnl If we use NLS figure out what method
|
|
||||||
if test "$USE_NLS" = "yes"; then
|
|
||||||
gt_use_preinstalled_gnugettext=no
|
|
||||||
ifelse(gt_included_intl, yes, [
|
|
||||||
AC_MSG_CHECKING([whether included gettext is requested])
|
|
||||||
AC_ARG_WITH([included-gettext],
|
|
||||||
[ --with-included-gettext use the GNU gettext library included here],
|
|
||||||
nls_cv_force_use_gnu_gettext=$withval,
|
|
||||||
nls_cv_force_use_gnu_gettext=no)
|
|
||||||
AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext])
|
|
||||||
|
|
||||||
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
|
|
||||||
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
|
|
||||||
])
|
|
||||||
dnl User does not insist on using GNU NLS library. Figure out what
|
|
||||||
dnl to use. If GNU gettext is available we use this. Else we have
|
|
||||||
dnl to fall back to GNU NLS library.
|
|
||||||
|
|
||||||
if test $gt_api_version -ge 3; then
|
|
||||||
gt_revision_test_code='
|
|
||||||
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
|
|
||||||
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
|
|
||||||
#endif
|
|
||||||
changequote(,)dnl
|
|
||||||
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
|
|
||||||
changequote([,])dnl
|
|
||||||
'
|
|
||||||
else
|
|
||||||
gt_revision_test_code=
|
|
||||||
fi
|
|
||||||
if test $gt_api_version -ge 2; then
|
|
||||||
gt_expression_test_code=' + * ngettext ("", "", 0)'
|
|
||||||
else
|
|
||||||
gt_expression_test_code=
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
|
|
||||||
[AC_TRY_LINK([#include <libintl.h>
|
|
||||||
$gt_revision_test_code
|
|
||||||
extern int _nl_msg_cat_cntr;
|
|
||||||
extern int *_nl_domain_bindings;],
|
|
||||||
[bindtextdomain ("", "");
|
|
||||||
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
|
|
||||||
[eval "$gt_func_gnugettext_libc=yes"],
|
|
||||||
[eval "$gt_func_gnugettext_libc=no"])])
|
|
||||||
|
|
||||||
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
|
|
||||||
dnl Sometimes libintl requires libiconv, so first search for libiconv.
|
|
||||||
ifelse(gt_included_intl, yes, , [
|
|
||||||
AM_ICONV_LINK
|
|
||||||
])
|
|
||||||
dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
|
|
||||||
dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
|
|
||||||
dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
|
|
||||||
dnl even if libiconv doesn't exist.
|
|
||||||
AC_LIB_LINKFLAGS_BODY([intl])
|
|
||||||
AC_CACHE_CHECK([for GNU gettext in libintl],
|
|
||||||
[$gt_func_gnugettext_libintl],
|
|
||||||
[gt_save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
CPPFLAGS="$CPPFLAGS $INCINTL"
|
|
||||||
gt_save_LIBS="$LIBS"
|
|
||||||
LIBS="$LIBS $LIBINTL"
|
|
||||||
dnl Now see whether libintl exists and does not depend on libiconv.
|
|
||||||
AC_TRY_LINK([#include <libintl.h>
|
|
||||||
$gt_revision_test_code
|
|
||||||
extern int _nl_msg_cat_cntr;
|
|
||||||
extern
|
|
||||||
#ifdef __cplusplus
|
|
||||||
"C"
|
|
||||||
#endif
|
|
||||||
const char *_nl_expand_alias (const char *);],
|
|
||||||
[bindtextdomain ("", "");
|
|
||||||
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
|
|
||||||
[eval "$gt_func_gnugettext_libintl=yes"],
|
|
||||||
[eval "$gt_func_gnugettext_libintl=no"])
|
|
||||||
dnl Now see whether libintl exists and depends on libiconv.
|
|
||||||
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
|
|
||||||
LIBS="$LIBS $LIBICONV"
|
|
||||||
AC_TRY_LINK([#include <libintl.h>
|
|
||||||
$gt_revision_test_code
|
|
||||||
extern int _nl_msg_cat_cntr;
|
|
||||||
extern
|
|
||||||
#ifdef __cplusplus
|
|
||||||
"C"
|
|
||||||
#endif
|
|
||||||
const char *_nl_expand_alias (const char *);],
|
|
||||||
[bindtextdomain ("", "");
|
|
||||||
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
|
|
||||||
[LIBINTL="$LIBINTL $LIBICONV"
|
|
||||||
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
|
|
||||||
eval "$gt_func_gnugettext_libintl=yes"
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
CPPFLAGS="$gt_save_CPPFLAGS"
|
|
||||||
LIBS="$gt_save_LIBS"])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl If an already present or preinstalled GNU gettext() is found,
|
|
||||||
dnl use it. But if this macro is used in GNU gettext, and GNU
|
|
||||||
dnl gettext is already preinstalled in libintl, we update this
|
|
||||||
dnl libintl. (Cf. the install rule in intl/Makefile.in.)
|
|
||||||
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
|
|
||||||
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
|
|
||||||
&& test "$PACKAGE" != gettext-runtime \
|
|
||||||
&& test "$PACKAGE" != gettext-tools; }; then
|
|
||||||
gt_use_preinstalled_gnugettext=yes
|
|
||||||
else
|
|
||||||
dnl Reset the values set by searching for libintl.
|
|
||||||
LIBINTL=
|
|
||||||
LTLIBINTL=
|
|
||||||
INCINTL=
|
|
||||||
fi
|
|
||||||
|
|
||||||
ifelse(gt_included_intl, yes, [
|
|
||||||
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
|
|
||||||
dnl GNU gettext is not found in the C library.
|
|
||||||
dnl Fall back on included GNU gettext library.
|
|
||||||
nls_cv_use_gnu_gettext=yes
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
||||||
dnl Mark actions used to generate GNU NLS library.
|
|
||||||
BUILD_INCLUDED_LIBINTL=yes
|
|
||||||
USE_INCLUDED_LIBINTL=yes
|
|
||||||
LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
|
|
||||||
LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
|
|
||||||
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
|
|
||||||
fi
|
|
||||||
|
|
||||||
CATOBJEXT=
|
|
||||||
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
|
||||||
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
||||||
dnl Mark actions to use GNU gettext tools.
|
|
||||||
CATOBJEXT=.gmo
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
if test -n "$INTL_MACOSX_LIBS"; then
|
|
||||||
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
|
||||||
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
||||||
dnl Some extra flags are needed during linking.
|
|
||||||
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
|
|
||||||
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$gt_use_preinstalled_gnugettext" = "yes" \
|
|
||||||
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
|
|
||||||
AC_DEFINE([ENABLE_NLS], [1],
|
|
||||||
[Define to 1 if translation of program messages to the user's native language
|
|
||||||
is requested.])
|
|
||||||
else
|
|
||||||
USE_NLS=no
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to use NLS])
|
|
||||||
AC_MSG_RESULT([$USE_NLS])
|
|
||||||
if test "$USE_NLS" = "yes"; then
|
|
||||||
AC_MSG_CHECKING([where the gettext function comes from])
|
|
||||||
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
|
|
||||||
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
|
|
||||||
gt_source="external libintl"
|
|
||||||
else
|
|
||||||
gt_source="libc"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
gt_source="included intl directory"
|
|
||||||
fi
|
|
||||||
AC_MSG_RESULT([$gt_source])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$USE_NLS" = "yes"; then
|
|
||||||
|
|
||||||
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
|
|
||||||
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
|
|
||||||
AC_MSG_CHECKING([how to link with libintl])
|
|
||||||
AC_MSG_RESULT([$LIBINTL])
|
|
||||||
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some packages may be using this.
|
|
||||||
AC_DEFINE([HAVE_GETTEXT], [1],
|
|
||||||
[Define if the GNU gettext() function is already present or preinstalled.])
|
|
||||||
AC_DEFINE([HAVE_DCGETTEXT], [1],
|
|
||||||
[Define if the GNU dcgettext() function is already present or preinstalled.])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl We need to process the po/ directory.
|
|
||||||
POSUB=po
|
|
||||||
fi
|
|
||||||
|
|
||||||
ifelse(gt_included_intl, yes, [
|
|
||||||
dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
|
|
||||||
dnl to 'yes' because some of the testsuite requires it.
|
|
||||||
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
|
|
||||||
BUILD_INCLUDED_LIBINTL=yes
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Make all variables we use known to autoconf.
|
|
||||||
AC_SUBST([BUILD_INCLUDED_LIBINTL])
|
|
||||||
AC_SUBST([USE_INCLUDED_LIBINTL])
|
|
||||||
AC_SUBST([CATOBJEXT])
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some configure.ins may be using this.
|
|
||||||
nls_cv_header_intl=
|
|
||||||
nls_cv_header_libgt=
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some Makefiles may be using this.
|
|
||||||
DATADIRNAME=share
|
|
||||||
AC_SUBST([DATADIRNAME])
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some Makefiles may be using this.
|
|
||||||
INSTOBJEXT=.mo
|
|
||||||
AC_SUBST([INSTOBJEXT])
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some Makefiles may be using this.
|
|
||||||
GENCAT=gencat
|
|
||||||
AC_SUBST([GENCAT])
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some Makefiles may be using this.
|
|
||||||
INTLOBJS=
|
|
||||||
if test "$USE_INCLUDED_LIBINTL" = yes; then
|
|
||||||
INTLOBJS="\$(GETTOBJS)"
|
|
||||||
fi
|
|
||||||
AC_SUBST([INTLOBJS])
|
|
||||||
|
|
||||||
dnl Enable libtool support if the surrounding package wishes it.
|
|
||||||
INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
|
|
||||||
AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl For backward compatibility. Some Makefiles may be using this.
|
|
||||||
INTLLIBS="$LIBINTL"
|
|
||||||
AC_SUBST([INTLLIBS])
|
|
||||||
|
|
||||||
dnl Make all documented variables known to autoconf.
|
|
||||||
AC_SUBST([LIBINTL])
|
|
||||||
AC_SUBST([LTLIBINTL])
|
|
||||||
AC_SUBST([POSUB])
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
|
|
||||||
m4_define([gt_NEEDS_INIT],
|
|
||||||
[
|
|
||||||
m4_divert_text([DEFAULTS], [gt_needs=])
|
|
||||||
m4_define([gt_NEEDS_INIT], [])
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
|
|
||||||
AC_DEFUN([AM_GNU_GETTEXT_NEED],
|
|
||||||
[
|
|
||||||
m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
|
|
||||||
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
|
|
@ -1,294 +0,0 @@
|
|||||||
# intl.m4 serial 17 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 1995-2009 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
dnl Authors:
|
|
||||||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
||||||
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2009.
|
|
||||||
|
|
||||||
AC_PREREQ([2.52])
|
|
||||||
|
|
||||||
dnl Checks for all prerequisites of the intl subdirectory,
|
|
||||||
dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
|
|
||||||
dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
|
|
||||||
AC_DEFUN([AM_INTL_SUBDIR],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
||||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
|
|
||||||
AC_REQUIRE([AC_PROG_CC])dnl
|
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
||||||
AC_REQUIRE([gt_GLIBC2])dnl
|
|
||||||
AC_REQUIRE([AC_PROG_RANLIB])dnl
|
|
||||||
AC_REQUIRE([gl_VISIBILITY])dnl
|
|
||||||
AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
|
|
||||||
AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
|
|
||||||
AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
|
|
||||||
AC_REQUIRE([gt_TYPE_WINT_T])dnl
|
|
||||||
AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
|
|
||||||
AC_REQUIRE([gt_TYPE_INTMAX_T])
|
|
||||||
AC_REQUIRE([gt_PRINTF_POSIX])
|
|
||||||
AC_REQUIRE([gl_GLIBC21])dnl
|
|
||||||
AC_REQUIRE([gl_XSIZE])dnl
|
|
||||||
AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl
|
|
||||||
AC_REQUIRE([gt_INTL_MACOSX])dnl
|
|
||||||
|
|
||||||
dnl Support for automake's --enable-silent-rules.
|
|
||||||
case "$enable_silent_rules" in
|
|
||||||
yes) INTL_DEFAULT_VERBOSITY=0;;
|
|
||||||
no) INTL_DEFAULT_VERBOSITY=1;;
|
|
||||||
*) INTL_DEFAULT_VERBOSITY=1;;
|
|
||||||
esac
|
|
||||||
AC_SUBST([INTL_DEFAULT_VERBOSITY])
|
|
||||||
|
|
||||||
AC_CHECK_TYPE([ptrdiff_t], ,
|
|
||||||
[AC_DEFINE([ptrdiff_t], [long],
|
|
||||||
[Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
|
|
||||||
])
|
|
||||||
AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
|
|
||||||
AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \
|
|
||||||
snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
|
|
||||||
|
|
||||||
dnl Use the _snprintf function only if it is declared (because on NetBSD it
|
|
||||||
dnl is defined as a weak alias of snprintf; we prefer to use the latter).
|
|
||||||
gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
|
|
||||||
gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
|
|
||||||
|
|
||||||
dnl Use the *_unlocked functions only if they are declared.
|
|
||||||
dnl (because some of them were defined without being declared in Solaris
|
|
||||||
dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
|
|
||||||
dnl on Solaris 2.5.1 to run on Solaris 2.6).
|
|
||||||
dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
|
|
||||||
gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
|
|
||||||
|
|
||||||
case $gt_cv_func_printf_posix in
|
|
||||||
*yes) HAVE_POSIX_PRINTF=1 ;;
|
|
||||||
*) HAVE_POSIX_PRINTF=0 ;;
|
|
||||||
esac
|
|
||||||
AC_SUBST([HAVE_POSIX_PRINTF])
|
|
||||||
if test "$ac_cv_func_asprintf" = yes; then
|
|
||||||
HAVE_ASPRINTF=1
|
|
||||||
else
|
|
||||||
HAVE_ASPRINTF=0
|
|
||||||
fi
|
|
||||||
AC_SUBST([HAVE_ASPRINTF])
|
|
||||||
if test "$ac_cv_func_snprintf" = yes; then
|
|
||||||
HAVE_SNPRINTF=1
|
|
||||||
else
|
|
||||||
HAVE_SNPRINTF=0
|
|
||||||
fi
|
|
||||||
AC_SUBST([HAVE_SNPRINTF])
|
|
||||||
if test "$ac_cv_func_newlocale" = yes; then
|
|
||||||
HAVE_NEWLOCALE=1
|
|
||||||
else
|
|
||||||
HAVE_NEWLOCALE=0
|
|
||||||
fi
|
|
||||||
AC_SUBST([HAVE_NEWLOCALE])
|
|
||||||
if test "$ac_cv_func_wprintf" = yes; then
|
|
||||||
HAVE_WPRINTF=1
|
|
||||||
else
|
|
||||||
HAVE_WPRINTF=0
|
|
||||||
fi
|
|
||||||
AC_SUBST([HAVE_WPRINTF])
|
|
||||||
|
|
||||||
AM_LANGINFO_CODESET
|
|
||||||
gt_LC_MESSAGES
|
|
||||||
|
|
||||||
dnl Compilation on mingw and Cygwin needs special Makefile rules, because
|
|
||||||
dnl 1. when we install a shared library, we must arrange to export
|
|
||||||
dnl auxiliary pointer variables for every exported variable,
|
|
||||||
dnl 2. when we install a shared library and a static library simultaneously,
|
|
||||||
dnl the include file specifies __declspec(dllimport) and therefore we
|
|
||||||
dnl must arrange to define the auxiliary pointer variables for the
|
|
||||||
dnl exported variables _also_ in the static library.
|
|
||||||
if test "$enable_shared" = yes; then
|
|
||||||
case "$host_os" in
|
|
||||||
mingw* | cygwin*) is_woe32dll=yes ;;
|
|
||||||
*) is_woe32dll=no ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
is_woe32dll=no
|
|
||||||
fi
|
|
||||||
WOE32DLL=$is_woe32dll
|
|
||||||
AC_SUBST([WOE32DLL])
|
|
||||||
|
|
||||||
dnl On mingw and Cygwin, we can activate special Makefile rules which add
|
|
||||||
dnl version information to the shared libraries and executables.
|
|
||||||
case "$host_os" in
|
|
||||||
mingw* | cygwin*) is_woe32=yes ;;
|
|
||||||
*) is_woe32=no ;;
|
|
||||||
esac
|
|
||||||
WOE32=$is_woe32
|
|
||||||
AC_SUBST([WOE32])
|
|
||||||
if test $WOE32 = yes; then
|
|
||||||
dnl Check for a program that compiles Windows resource files.
|
|
||||||
AC_CHECK_TOOL([WINDRES], [windres])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Determine whether when creating a library, "-lc" should be passed to
|
|
||||||
dnl libtool or not. On many platforms, it is required for the libtool option
|
|
||||||
dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool
|
|
||||||
dnl in the *.la files - makes it impossible to create multithreaded programs,
|
|
||||||
dnl because libtool also reorders the -lc to come before the -pthread, and
|
|
||||||
dnl this disables pthread_create() <http://docs.hp.com/en/1896/pthreads.html>.
|
|
||||||
case "$host_os" in
|
|
||||||
hpux*) LTLIBC="" ;;
|
|
||||||
*) LTLIBC="-lc" ;;
|
|
||||||
esac
|
|
||||||
AC_SUBST([LTLIBC])
|
|
||||||
|
|
||||||
dnl Rename some macros and functions used for locking.
|
|
||||||
AH_BOTTOM([
|
|
||||||
#define __libc_lock_t gl_lock_t
|
|
||||||
#define __libc_lock_define gl_lock_define
|
|
||||||
#define __libc_lock_define_initialized gl_lock_define_initialized
|
|
||||||
#define __libc_lock_init gl_lock_init
|
|
||||||
#define __libc_lock_lock gl_lock_lock
|
|
||||||
#define __libc_lock_unlock gl_lock_unlock
|
|
||||||
#define __libc_lock_recursive_t gl_recursive_lock_t
|
|
||||||
#define __libc_lock_define_recursive gl_recursive_lock_define
|
|
||||||
#define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized
|
|
||||||
#define __libc_lock_init_recursive gl_recursive_lock_init
|
|
||||||
#define __libc_lock_lock_recursive gl_recursive_lock_lock
|
|
||||||
#define __libc_lock_unlock_recursive gl_recursive_lock_unlock
|
|
||||||
#define glthread_in_use libintl_thread_in_use
|
|
||||||
#define glthread_lock_init_func libintl_lock_init_func
|
|
||||||
#define glthread_lock_lock_func libintl_lock_lock_func
|
|
||||||
#define glthread_lock_unlock_func libintl_lock_unlock_func
|
|
||||||
#define glthread_lock_destroy_func libintl_lock_destroy_func
|
|
||||||
#define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded
|
|
||||||
#define glthread_rwlock_init_func libintl_rwlock_init_func
|
|
||||||
#define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded
|
|
||||||
#define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func
|
|
||||||
#define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded
|
|
||||||
#define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func
|
|
||||||
#define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded
|
|
||||||
#define glthread_rwlock_unlock_func libintl_rwlock_unlock_func
|
|
||||||
#define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded
|
|
||||||
#define glthread_rwlock_destroy_func libintl_rwlock_destroy_func
|
|
||||||
#define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded
|
|
||||||
#define glthread_recursive_lock_init_func libintl_recursive_lock_init_func
|
|
||||||
#define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded
|
|
||||||
#define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func
|
|
||||||
#define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded
|
|
||||||
#define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func
|
|
||||||
#define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded
|
|
||||||
#define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func
|
|
||||||
#define glthread_once_func libintl_once_func
|
|
||||||
#define glthread_once_singlethreaded libintl_once_singlethreaded
|
|
||||||
#define glthread_once_multithreaded libintl_once_multithreaded
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl Checks for the core files of the intl subdirectory:
|
|
||||||
dnl dcigettext.c
|
|
||||||
dnl eval-plural.h
|
|
||||||
dnl explodename.c
|
|
||||||
dnl finddomain.c
|
|
||||||
dnl gettextP.h
|
|
||||||
dnl gmo.h
|
|
||||||
dnl hash-string.h hash-string.c
|
|
||||||
dnl l10nflist.c
|
|
||||||
dnl libgnuintl.h.in (except the *printf stuff)
|
|
||||||
dnl loadinfo.h
|
|
||||||
dnl loadmsgcat.c
|
|
||||||
dnl localealias.c
|
|
||||||
dnl log.c
|
|
||||||
dnl plural-exp.h plural-exp.c
|
|
||||||
dnl plural.y
|
|
||||||
dnl Used by libglocale.
|
|
||||||
AC_DEFUN([gt_INTL_SUBDIR_CORE],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AC_C_INLINE])dnl
|
|
||||||
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
|
|
||||||
AC_REQUIRE([gl_AC_HEADER_STDINT_H])
|
|
||||||
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
|
|
||||||
AC_REQUIRE([AC_FUNC_MMAP])dnl
|
|
||||||
AC_REQUIRE([gt_INTDIV0])dnl
|
|
||||||
AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
|
|
||||||
AC_REQUIRE([gt_INTTYPES_PRI])dnl
|
|
||||||
AC_REQUIRE([gl_LOCK])dnl
|
|
||||||
|
|
||||||
AC_TRY_LINK(
|
|
||||||
[int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
|
|
||||||
[],
|
|
||||||
[AC_DEFINE([HAVE_BUILTIN_EXPECT], [1],
|
|
||||||
[Define to 1 if the compiler understands __builtin_expect.])])
|
|
||||||
|
|
||||||
AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])
|
|
||||||
AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
|
|
||||||
stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
|
|
||||||
argz_stringify argz_next __fsetlocking])
|
|
||||||
|
|
||||||
dnl Use the *_unlocked functions only if they are declared.
|
|
||||||
dnl (because some of them were defined without being declared in Solaris
|
|
||||||
dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
|
|
||||||
dnl on Solaris 2.5.1 to run on Solaris 2.6).
|
|
||||||
dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
|
|
||||||
gt_CHECK_DECL([feof_unlocked], [#include <stdio.h>])
|
|
||||||
gt_CHECK_DECL([fgets_unlocked], [#include <stdio.h>])
|
|
||||||
|
|
||||||
AM_ICONV
|
|
||||||
|
|
||||||
dnl intl/plural.c is generated from intl/plural.y. It requires bison,
|
|
||||||
dnl because plural.y uses bison specific features. It requires at least
|
|
||||||
dnl bison-1.26 because earlier versions generate a plural.c that doesn't
|
|
||||||
dnl compile.
|
|
||||||
dnl bison is only needed for the maintainer (who touches plural.y). But in
|
|
||||||
dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
|
|
||||||
dnl the rule in general Makefile. Now, some people carelessly touch the
|
|
||||||
dnl files or have a broken "make" program, hence the plural.c rule will
|
|
||||||
dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
|
|
||||||
dnl present or too old.
|
|
||||||
AC_CHECK_PROGS([INTLBISON], [bison])
|
|
||||||
if test -z "$INTLBISON"; then
|
|
||||||
ac_verc_fail=yes
|
|
||||||
else
|
|
||||||
dnl Found it, now check the version.
|
|
||||||
AC_MSG_CHECKING([version of bison])
|
|
||||||
changequote(<<,>>)dnl
|
|
||||||
ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
|
|
||||||
case $ac_prog_version in
|
|
||||||
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
|
|
||||||
1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
|
|
||||||
changequote([,])dnl
|
|
||||||
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
|
|
||||||
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
|
|
||||||
esac
|
|
||||||
AC_MSG_RESULT([$ac_prog_version])
|
|
||||||
fi
|
|
||||||
if test $ac_verc_fail = yes; then
|
|
||||||
INTLBISON=:
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
|
|
||||||
|
|
||||||
dnl gt_CHECK_DECL(FUNC, INCLUDES)
|
|
||||||
dnl Check whether a function is declared.
|
|
||||||
AC_DEFUN([gt_CHECK_DECL],
|
|
||||||
[
|
|
||||||
AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1],
|
|
||||||
[AC_TRY_COMPILE([$2], [
|
|
||||||
#ifndef $1
|
|
||||||
char *p = (char *) $1;
|
|
||||||
#endif
|
|
||||||
], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
|
|
||||||
if test $ac_cv_have_decl_$1 = yes; then
|
|
||||||
gt_value=1
|
|
||||||
else
|
|
||||||
gt_value=0
|
|
||||||
fi
|
|
||||||
AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
|
|
||||||
[Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
|
|
||||||
])
|
|
@ -1,19 +0,0 @@
|
|||||||
# intldir.m4 serial 2 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
AC_PREREQ([2.52])
|
|
||||||
|
|
||||||
dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory.
|
|
||||||
AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], [])
|
|
@ -1,51 +0,0 @@
|
|||||||
# intlmacosx.m4 serial 3 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 2004-2010 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
dnl Checks for special options needed on MacOS X.
|
|
||||||
dnl Defines INTL_MACOSX_LIBS.
|
|
||||||
AC_DEFUN([gt_INTL_MACOSX],
|
|
||||||
[
|
|
||||||
dnl Check for API introduced in MacOS X 10.2.
|
|
||||||
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
|
|
||||||
[gt_cv_func_CFPreferencesCopyAppValue],
|
|
||||||
[gt_save_LIBS="$LIBS"
|
|
||||||
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
|
|
||||||
AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
|
|
||||||
[CFPreferencesCopyAppValue(NULL, NULL)],
|
|
||||||
[gt_cv_func_CFPreferencesCopyAppValue=yes],
|
|
||||||
[gt_cv_func_CFPreferencesCopyAppValue=no])
|
|
||||||
LIBS="$gt_save_LIBS"])
|
|
||||||
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
|
|
||||||
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1],
|
|
||||||
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
|
|
||||||
fi
|
|
||||||
dnl Check for API introduced in MacOS X 10.3.
|
|
||||||
AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent],
|
|
||||||
[gt_save_LIBS="$LIBS"
|
|
||||||
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
|
|
||||||
AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
|
|
||||||
[gt_cv_func_CFLocaleCopyCurrent=yes],
|
|
||||||
[gt_cv_func_CFLocaleCopyCurrent=no])
|
|
||||||
LIBS="$gt_save_LIBS"])
|
|
||||||
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
|
|
||||||
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1],
|
|
||||||
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
|
|
||||||
fi
|
|
||||||
INTL_MACOSX_LIBS=
|
|
||||||
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
|
|
||||||
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
|
|
||||||
fi
|
|
||||||
AC_SUBST([INTL_MACOSX_LIBS])
|
|
||||||
])
|
|
@ -1,31 +0,0 @@
|
|||||||
# lcmessage.m4 serial 6 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation,
|
|
||||||
dnl Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
dnl Authors:
|
|
||||||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
|
|
||||||
|
|
||||||
# Check whether LC_MESSAGES is available in <locale.h>.
|
|
||||||
|
|
||||||
AC_DEFUN([gt_LC_MESSAGES],
|
|
||||||
[
|
|
||||||
AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES],
|
|
||||||
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
|
|
||||||
[gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])])
|
|
||||||
if test $gt_cv_val_LC_MESSAGES = yes; then
|
|
||||||
AC_DEFINE([HAVE_LC_MESSAGES], [1],
|
|
||||||
[Define if your <locale.h> file defines LC_MESSAGES.])
|
|
||||||
fi
|
|
||||||
])
|
|
@ -1,32 +0,0 @@
|
|||||||
# nls.m4 serial 5 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
|
|
||||||
dnl Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
dnl Authors:
|
|
||||||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
||||||
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
||||||
|
|
||||||
AC_PREREQ([2.50])
|
|
||||||
|
|
||||||
AC_DEFUN([AM_NLS],
|
|
||||||
[
|
|
||||||
AC_MSG_CHECKING([whether NLS is requested])
|
|
||||||
dnl Default is enabled NLS
|
|
||||||
AC_ARG_ENABLE([nls],
|
|
||||||
[ --disable-nls do not use Native Language Support],
|
|
||||||
USE_NLS=$enableval, USE_NLS=yes)
|
|
||||||
AC_MSG_RESULT([$USE_NLS])
|
|
||||||
AC_SUBST([USE_NLS])
|
|
||||||
])
|
|
@ -1,449 +0,0 @@
|
|||||||
# po.m4 serial 17 (gettext-0.18)
|
|
||||||
dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
dnl
|
|
||||||
dnl This file can can be used in projects which are not available under
|
|
||||||
dnl the GNU General Public License or the GNU Library General Public
|
|
||||||
dnl License but which still want to provide support for the GNU gettext
|
|
||||||
dnl functionality.
|
|
||||||
dnl Please note that the actual code of the GNU gettext library is covered
|
|
||||||
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
||||||
dnl gettext package package is covered by the GNU General Public License.
|
|
||||||
dnl They are *not* in the public domain.
|
|
||||||
|
|
||||||
dnl Authors:
|
|
||||||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
||||||
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
||||||
|
|
||||||
AC_PREREQ([2.50])
|
|
||||||
|
|
||||||
dnl Checks for all prerequisites of the po subdirectory.
|
|
||||||
AC_DEFUN([AM_PO_SUBDIRS],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
||||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
||||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
|
|
||||||
AC_REQUIRE([AM_NLS])dnl
|
|
||||||
|
|
||||||
dnl Release version of the gettext macros. This is used to ensure that
|
|
||||||
dnl the gettext macros and po/Makefile.in.in are in sync.
|
|
||||||
AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
|
|
||||||
|
|
||||||
dnl Perform the following tests also if --disable-nls has been given,
|
|
||||||
dnl because they are needed for "make dist" to work.
|
|
||||||
|
|
||||||
dnl Search for GNU msgfmt in the PATH.
|
|
||||||
dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
|
|
||||||
dnl The second test excludes FreeBSD msgfmt.
|
|
||||||
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
|
|
||||||
[$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
|
||||||
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
|
|
||||||
:)
|
|
||||||
AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
|
|
||||||
|
|
||||||
dnl Test whether it is GNU msgfmt >= 0.15.
|
|
||||||
changequote(,)dnl
|
|
||||||
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
||||||
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
|
|
||||||
*) MSGFMT_015=$MSGFMT ;;
|
|
||||||
esac
|
|
||||||
changequote([,])dnl
|
|
||||||
AC_SUBST([MSGFMT_015])
|
|
||||||
changequote(,)dnl
|
|
||||||
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
||||||
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
|
|
||||||
*) GMSGFMT_015=$GMSGFMT ;;
|
|
||||||
esac
|
|
||||||
changequote([,])dnl
|
|
||||||
AC_SUBST([GMSGFMT_015])
|
|
||||||
|
|
||||||
dnl Search for GNU xgettext 0.12 or newer in the PATH.
|
|
||||||
dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
|
|
||||||
dnl The second test excludes FreeBSD xgettext.
|
|
||||||
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
|
|
||||||
[$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
|
|
||||||
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
|
|
||||||
:)
|
|
||||||
dnl Remove leftover from FreeBSD xgettext call.
|
|
||||||
rm -f messages.po
|
|
||||||
|
|
||||||
dnl Test whether it is GNU xgettext >= 0.15.
|
|
||||||
changequote(,)dnl
|
|
||||||
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
|
|
||||||
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
|
|
||||||
*) XGETTEXT_015=$XGETTEXT ;;
|
|
||||||
esac
|
|
||||||
changequote([,])dnl
|
|
||||||
AC_SUBST([XGETTEXT_015])
|
|
||||||
|
|
||||||
dnl Search for GNU msgmerge 0.11 or newer in the PATH.
|
|
||||||
AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
|
|
||||||
[$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
|
|
||||||
|
|
||||||
dnl Installation directories.
|
|
||||||
dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
|
|
||||||
dnl have to define it here, so that it can be used in po/Makefile.
|
|
||||||
test -n "$localedir" || localedir='${datadir}/locale'
|
|
||||||
AC_SUBST([localedir])
|
|
||||||
|
|
||||||
dnl Support for AM_XGETTEXT_OPTION.
|
|
||||||
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
|
|
||||||
AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
|
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS([po-directories], [[
|
|
||||||
for ac_file in $CONFIG_FILES; do
|
|
||||||
# Support "outfile[:infile[:infile...]]"
|
|
||||||
case "$ac_file" in
|
|
||||||
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
|
|
||||||
esac
|
|
||||||
# PO directories have a Makefile.in generated from Makefile.in.in.
|
|
||||||
case "$ac_file" in */Makefile.in)
|
|
||||||
# Adjust a relative srcdir.
|
|
||||||
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
||||||
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
|
|
||||||
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
||||||
# In autoconf-2.13 it is called $ac_given_srcdir.
|
|
||||||
# In autoconf-2.50 it is called $srcdir.
|
|
||||||
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
||||||
case "$ac_given_srcdir" in
|
|
||||||
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
||||||
/*) top_srcdir="$ac_given_srcdir" ;;
|
|
||||||
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
||||||
esac
|
|
||||||
# Treat a directory as a PO directory if and only if it has a
|
|
||||||
# POTFILES.in file. This allows packages to have multiple PO
|
|
||||||
# directories under different names or in different locations.
|
|
||||||
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
|
|
||||||
rm -f "$ac_dir/POTFILES"
|
|
||||||
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
|
|
||||||
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
|
|
||||||
POMAKEFILEDEPS="POTFILES.in"
|
|
||||||
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
|
|
||||||
# on $ac_dir but don't depend on user-specified configuration
|
|
||||||
# parameters.
|
|
||||||
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
||||||
# The LINGUAS file contains the set of available languages.
|
|
||||||
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
|
||||||
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
|
||||||
fi
|
|
||||||
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
||||||
# Hide the ALL_LINGUAS assigment from automake < 1.5.
|
|
||||||
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
|
||||||
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
||||||
else
|
|
||||||
# The set of available languages was given in configure.in.
|
|
||||||
# Hide the ALL_LINGUAS assigment from automake < 1.5.
|
|
||||||
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
|
|
||||||
fi
|
|
||||||
# Compute POFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
|
||||||
# Compute UPDATEPOFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
|
||||||
# Compute DUMMYPOFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
|
||||||
# Compute GMOFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
|
||||||
case "$ac_given_srcdir" in
|
|
||||||
.) srcdirpre= ;;
|
|
||||||
*) srcdirpre='$(srcdir)/' ;;
|
|
||||||
esac
|
|
||||||
POFILES=
|
|
||||||
UPDATEPOFILES=
|
|
||||||
DUMMYPOFILES=
|
|
||||||
GMOFILES=
|
|
||||||
for lang in $ALL_LINGUAS; do
|
|
||||||
POFILES="$POFILES $srcdirpre$lang.po"
|
|
||||||
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
|
||||||
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
|
||||||
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
|
||||||
done
|
|
||||||
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
|
||||||
# environment variable.
|
|
||||||
INST_LINGUAS=
|
|
||||||
if test -n "$ALL_LINGUAS"; then
|
|
||||||
for presentlang in $ALL_LINGUAS; do
|
|
||||||
useit=no
|
|
||||||
if test "%UNSET%" != "$LINGUAS"; then
|
|
||||||
desiredlanguages="$LINGUAS"
|
|
||||||
else
|
|
||||||
desiredlanguages="$ALL_LINGUAS"
|
|
||||||
fi
|
|
||||||
for desiredlang in $desiredlanguages; do
|
|
||||||
# Use the presentlang catalog if desiredlang is
|
|
||||||
# a. equal to presentlang, or
|
|
||||||
# b. a variant of presentlang (because in this case,
|
|
||||||
# presentlang can be used as a fallback for messages
|
|
||||||
# which are not translated in the desiredlang catalog).
|
|
||||||
case "$desiredlang" in
|
|
||||||
"$presentlang"*) useit=yes;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
if test $useit = yes; then
|
|
||||||
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
CATALOGS=
|
|
||||||
if test -n "$INST_LINGUAS"; then
|
|
||||||
for lang in $INST_LINGUAS; do
|
|
||||||
CATALOGS="$CATALOGS $lang.gmo"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
|
|
||||||
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
|
|
||||||
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
|
|
||||||
if test -f "$f"; then
|
|
||||||
case "$f" in
|
|
||||||
*.orig | *.bak | *~) ;;
|
|
||||||
*) cat "$f" >> "$ac_dir/Makefile" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done]],
|
|
||||||
[# Capture the value of obsolete ALL_LINGUAS because we need it to compute
|
|
||||||
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
|
|
||||||
# from automake < 1.5.
|
|
||||||
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
|
|
||||||
# Capture the value of LINGUAS because we need it to compute CATALOGS.
|
|
||||||
LINGUAS="${LINGUAS-%UNSET%}"
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Postprocesses a Makefile in a directory containing PO files.
|
|
||||||
AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
|
|
||||||
[
|
|
||||||
# When this code is run, in config.status, two variables have already been
|
|
||||||
# set:
|
|
||||||
# - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
|
|
||||||
# - LINGUAS is the value of the environment variable LINGUAS at configure
|
|
||||||
# time.
|
|
||||||
|
|
||||||
changequote(,)dnl
|
|
||||||
# Adjust a relative srcdir.
|
|
||||||
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
|
|
||||||
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
|
|
||||||
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
|
|
||||||
# In autoconf-2.13 it is called $ac_given_srcdir.
|
|
||||||
# In autoconf-2.50 it is called $srcdir.
|
|
||||||
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
|
|
||||||
case "$ac_given_srcdir" in
|
|
||||||
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
|
|
||||||
/*) top_srcdir="$ac_given_srcdir" ;;
|
|
||||||
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Find a way to echo strings without interpreting backslash.
|
|
||||||
if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
|
|
||||||
gt_echo='echo'
|
|
||||||
else
|
|
||||||
if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
|
|
||||||
gt_echo='printf %s\n'
|
|
||||||
else
|
|
||||||
echo_func () {
|
|
||||||
cat <<EOT
|
|
||||||
$*
|
|
||||||
EOT
|
|
||||||
}
|
|
||||||
gt_echo='echo_func'
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# A sed script that extracts the value of VARIABLE from a Makefile.
|
|
||||||
sed_x_variable='
|
|
||||||
# Test if the hold space is empty.
|
|
||||||
x
|
|
||||||
s/P/P/
|
|
||||||
x
|
|
||||||
ta
|
|
||||||
# Yes it was empty. Look if we have the expected variable definition.
|
|
||||||
/^[ ]*VARIABLE[ ]*=/{
|
|
||||||
# Seen the first line of the variable definition.
|
|
||||||
s/^[ ]*VARIABLE[ ]*=//
|
|
||||||
ba
|
|
||||||
}
|
|
||||||
bd
|
|
||||||
:a
|
|
||||||
# Here we are processing a line from the variable definition.
|
|
||||||
# Remove comment, more precisely replace it with a space.
|
|
||||||
s/#.*$/ /
|
|
||||||
# See if the line ends in a backslash.
|
|
||||||
tb
|
|
||||||
:b
|
|
||||||
s/\\$//
|
|
||||||
# Print the line, without the trailing backslash.
|
|
||||||
p
|
|
||||||
tc
|
|
||||||
# There was no trailing backslash. The end of the variable definition is
|
|
||||||
# reached. Clear the hold space.
|
|
||||||
s/^.*$//
|
|
||||||
x
|
|
||||||
bd
|
|
||||||
:c
|
|
||||||
# A trailing backslash means that the variable definition continues in the
|
|
||||||
# next line. Put a nonempty string into the hold space to indicate this.
|
|
||||||
s/^.*$/P/
|
|
||||||
x
|
|
||||||
:d
|
|
||||||
'
|
|
||||||
changequote([,])dnl
|
|
||||||
|
|
||||||
# Set POTFILES to the value of the Makefile variable POTFILES.
|
|
||||||
sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
|
|
||||||
POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
|
|
||||||
# Compute POTFILES_DEPS as
|
|
||||||
# $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
|
|
||||||
POTFILES_DEPS=
|
|
||||||
for file in $POTFILES; do
|
|
||||||
POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
|
|
||||||
done
|
|
||||||
POMAKEFILEDEPS=""
|
|
||||||
|
|
||||||
if test -n "$OBSOLETE_ALL_LINGUAS"; then
|
|
||||||
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
|
|
||||||
fi
|
|
||||||
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
|
|
||||||
# The LINGUAS file contains the set of available languages.
|
|
||||||
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
|
|
||||||
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
|
|
||||||
else
|
|
||||||
# Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
|
|
||||||
sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
|
|
||||||
ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
|
|
||||||
fi
|
|
||||||
# Hide the ALL_LINGUAS assigment from automake < 1.5.
|
|
||||||
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
|
|
||||||
# Compute POFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
|
|
||||||
# Compute UPDATEPOFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
|
|
||||||
# Compute DUMMYPOFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
|
|
||||||
# Compute GMOFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
|
|
||||||
# Compute PROPERTIESFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
|
|
||||||
# Compute CLASSFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
|
|
||||||
# Compute QMFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
|
|
||||||
# Compute MSGFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
|
|
||||||
# Compute RESOURCESDLLFILES
|
|
||||||
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
|
|
||||||
case "$ac_given_srcdir" in
|
|
||||||
.) srcdirpre= ;;
|
|
||||||
*) srcdirpre='$(srcdir)/' ;;
|
|
||||||
esac
|
|
||||||
POFILES=
|
|
||||||
UPDATEPOFILES=
|
|
||||||
DUMMYPOFILES=
|
|
||||||
GMOFILES=
|
|
||||||
PROPERTIESFILES=
|
|
||||||
CLASSFILES=
|
|
||||||
QMFILES=
|
|
||||||
MSGFILES=
|
|
||||||
RESOURCESDLLFILES=
|
|
||||||
for lang in $ALL_LINGUAS; do
|
|
||||||
POFILES="$POFILES $srcdirpre$lang.po"
|
|
||||||
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
|
|
||||||
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
|
|
||||||
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
|
|
||||||
PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
|
|
||||||
CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
|
|
||||||
QMFILES="$QMFILES $srcdirpre$lang.qm"
|
|
||||||
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
||||||
MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
|
|
||||||
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
|
|
||||||
RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
|
|
||||||
done
|
|
||||||
# CATALOGS depends on both $ac_dir and the user's LINGUAS
|
|
||||||
# environment variable.
|
|
||||||
INST_LINGUAS=
|
|
||||||
if test -n "$ALL_LINGUAS"; then
|
|
||||||
for presentlang in $ALL_LINGUAS; do
|
|
||||||
useit=no
|
|
||||||
if test "%UNSET%" != "$LINGUAS"; then
|
|
||||||
desiredlanguages="$LINGUAS"
|
|
||||||
else
|
|
||||||
desiredlanguages="$ALL_LINGUAS"
|
|
||||||
fi
|
|
||||||
for desiredlang in $desiredlanguages; do
|
|
||||||
# Use the presentlang catalog if desiredlang is
|
|
||||||
# a. equal to presentlang, or
|
|
||||||
# b. a variant of presentlang (because in this case,
|
|
||||||
# presentlang can be used as a fallback for messages
|
|
||||||
# which are not translated in the desiredlang catalog).
|
|
||||||
case "$desiredlang" in
|
|
||||||
"$presentlang"*) useit=yes;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
if test $useit = yes; then
|
|
||||||
INST_LINGUAS="$INST_LINGUAS $presentlang"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
CATALOGS=
|
|
||||||
JAVACATALOGS=
|
|
||||||
QTCATALOGS=
|
|
||||||
TCLCATALOGS=
|
|
||||||
CSHARPCATALOGS=
|
|
||||||
if test -n "$INST_LINGUAS"; then
|
|
||||||
for lang in $INST_LINGUAS; do
|
|
||||||
CATALOGS="$CATALOGS $lang.gmo"
|
|
||||||
JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
|
|
||||||
QTCATALOGS="$QTCATALOGS $lang.qm"
|
|
||||||
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
||||||
TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
|
|
||||||
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
|
|
||||||
CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
|
|
||||||
if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
|
|
||||||
# Add dependencies that cannot be formulated as a simple suffix rule.
|
|
||||||
for lang in $ALL_LINGUAS; do
|
|
||||||
frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
|
|
||||||
cat >> "$ac_file.tmp" <<EOF
|
|
||||||
$frobbedlang.msg: $lang.po
|
|
||||||
@echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
|
|
||||||
\$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
|
||||||
EOF
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
|
|
||||||
# Add dependencies that cannot be formulated as a simple suffix rule.
|
|
||||||
for lang in $ALL_LINGUAS; do
|
|
||||||
frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
|
|
||||||
cat >> "$ac_file.tmp" <<EOF
|
|
||||||
$frobbedlang/\$(DOMAIN).resources.dll: $lang.po
|
|
||||||
@echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
|
|
||||||
\$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
|
|
||||||
EOF
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
if test -n "$POMAKEFILEDEPS"; then
|
|
||||||
cat >> "$ac_file.tmp" <<EOF
|
|
||||||
Makefile: $POMAKEFILEDEPS
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
mv "$ac_file.tmp" "$ac_file"
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
|
|
||||||
AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
|
|
||||||
[
|
|
||||||
XGETTEXT_EXTRA_OPTIONS=
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Registers an option to be passed to xgettext in the po subdirectory.
|
|
||||||
AC_DEFUN([AM_XGETTEXT_OPTION],
|
|
||||||
[
|
|
||||||
AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
|
|
||||||
XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
|
|
||||||
])
|
|
@ -8,14 +8,16 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=jansson
|
PKG_NAME:=jansson
|
||||||
PKG_VERSION:=2.13.1
|
PKG_VERSION:=2.14
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://codeload.github.com/akheron/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
|
||||||
|
PKG_HASH:=c739578bf6b764aa0752db9a2fdadcfe921c78f1228c7ec0bb47fa804c55d17b
|
||||||
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
PKG_CPE_ID:=cpe:/a:jansson_project:jansson
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
||||||
PKG_SOURCE_URL:=http://www.digip.org/jansson/releases/
|
|
||||||
PKG_HASH:=ee90a0f879d2b7b7159124ff22b937a2a9a8c36d3bb65d1da7dd3f04370a10bd
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
@ -44,7 +46,7 @@ TARGET_LDFLAGS += -flto
|
|||||||
|
|
||||||
define Package/jansson/install
|
define Package/jansson/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,jansson))
|
$(eval $(call BuildPackage,jansson))
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libbsd
|
PKG_NAME:=libbsd
|
||||||
PKG_VERSION:=0.10.0
|
PKG_VERSION:=0.11.7
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
|
PKG_SOURCE_URL:=https://libbsd.freedesktop.org/releases
|
||||||
PKG_HASH:=34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887
|
PKG_HASH:=9baa186059ebbf25c06308e9f991fda31f7183c0f24931826d83aa6abd8a0261
|
||||||
|
|
||||||
PKG_LICENSE:=BSD-4-Clause
|
PKG_LICENSE:=BSD-4-Clause
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
PKG_BUILD_DEPENDS := libmd
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
@ -42,4 +43,3 @@ define Package/libbsd/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libbsd))
|
$(eval $(call BuildPackage,libbsd))
|
||||||
|
|
||||||
|
@ -6,16 +6,17 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libcap
|
PKG_NAME:=libcap
|
||||||
PKG_VERSION:=2.65
|
PKG_VERSION:=2.66
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@KERNEL/linux/libs/security/linux-privs/libcap2
|
PKG_SOURCE_URL:=@KERNEL/linux/libs/security/linux-privs/libcap2
|
||||||
PKG_HASH:=73e350020cc31fe15360879d19384ffa3395a825f065fcf6bda3a5cdf965bebd
|
PKG_HASH:=15c40ededb3003d70a283fe587a36b7d19c8b3b554e33f86129c059a4bb466b2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Paul Wassi <p.wassi@gmx.at>
|
PKG_MAINTAINER:=Paul Wassi <p.wassi@gmx.at>
|
||||||
PKG_LICENSE:=GPL-2.0-only
|
PKG_LICENSE:=GPL-2.0-only
|
||||||
PKG_LICENSE_FILES:=License
|
PKG_LICENSE_FILES:=License
|
||||||
|
PKG_CPE_ID:=cpe:/a:libcap_project:libcap
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
--- a/progs/mkcapshdoc.sh
|
||||||
|
+++ b/progs/mkcapshdoc.sh
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/bin/bash
|
||||||
|
+#!/usr/bin/env bash
|
||||||
|
# This script generates some C code for inclusion in the capsh binary.
|
||||||
|
# The Makefile generally only generates the .c code and compares it
|
||||||
|
# with the checked in code in the progs directory.
|
@ -1,68 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2008-2016 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_NAME:=libdouble-conversion
|
|
||||||
PKG_VERSION:=2.0
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
|
||||||
PKG_SOURCE_VERSION:=0d25506a2e7fb52928963313343e0237e890059e
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
||||||
PKG_MIRROR_HASH:=7466f634421f3136174cbc2b00635788509a3312894de28367f31d891fd401ad
|
|
||||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
PKG_SOURCE_URL:=https://github.com/google/double-conversion.git
|
|
||||||
PKG_LICENSE_FILES:=COPYING LICENSE
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
|
||||||
|
|
||||||
define Package/libdouble-conversion
|
|
||||||
SECTION:=libs
|
|
||||||
CATEGORY:=Libraries
|
|
||||||
TITLE:=Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles
|
|
||||||
URL:=https://github.com/google/double-conversion
|
|
||||||
DEPENDS:=+libstdcpp
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/libdouble-conversion/description
|
|
||||||
double-conversion provides binary-decimal and decimal-binary routines for IEEE doubles.
|
|
||||||
|
|
||||||
The library consists of efficient conversion routines that have been extracted
|
|
||||||
from the V8 JavaScript engine. The code has been refactored and improved so that
|
|
||||||
it can be used more easily in other projects.
|
|
||||||
endef
|
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
|
||||||
-DBUILD_TESTING=OFF
|
|
||||||
|
|
||||||
define Build/InstallDev
|
|
||||||
$(INSTALL_DIR) \
|
|
||||||
$(1)/usr/lib \
|
|
||||||
$(1)/usr/include/double-conversion
|
|
||||||
|
|
||||||
$(CP) \
|
|
||||||
$(PKG_INSTALL_DIR)/usr/include/* \
|
|
||||||
$(1)/usr/include/
|
|
||||||
|
|
||||||
$(INSTALL_DATA) \
|
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
|
|
||||||
$(1)/usr/lib/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/libdouble-conversion/install
|
|
||||||
$(INSTALL_DIR) \
|
|
||||||
$(1)/usr/lib
|
|
||||||
|
|
||||||
$(INSTALL_DATA) \
|
|
||||||
$(PKG_INSTALL_DIR)/usr/lib/lib*.so* \
|
|
||||||
$(1)/usr/lib/
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libdouble-conversion))
|
|
@ -8,13 +8,14 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libiconv-full
|
PKG_NAME:=libiconv-full
|
||||||
PKG_VERSION:=1.16
|
PKG_VERSION:=1.17
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=libiconv-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/libiconv
|
PKG_SOURCE_URL:=@GNU/libiconv
|
||||||
PKG_HASH:=e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04
|
PKG_HASH:=8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libiconv-$(PKG_VERSION)
|
||||||
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/libiconv-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
@ -25,6 +26,7 @@ PKG_INSTALL:=1
|
|||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
define Package/libiconv-full/Default
|
define Package/libiconv-full/Default
|
||||||
URL:=https://www.gnu.org/software/libiconv/
|
URL:=https://www.gnu.org/software/libiconv/
|
||||||
@ -61,6 +63,10 @@ CONFIGURE_ARGS += \
|
|||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--enable-relocatable
|
--enable-relocatable
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS += \
|
||||||
|
--disable-shared \
|
||||||
|
--with-pic
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
|
$(INSTALL_DIR) $(1)/usr/lib/libiconv-full/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/iconv.h $(1)/usr/lib/libiconv-full/include/
|
||||||
@ -88,3 +94,4 @@ endef
|
|||||||
$(eval $(call BuildPackage,libcharset))
|
$(eval $(call BuildPackage,libcharset))
|
||||||
$(eval $(call BuildPackage,libiconv-full))
|
$(eval $(call BuildPackage,libiconv-full))
|
||||||
$(eval $(call BuildPackage,iconv))
|
$(eval $(call BuildPackage,iconv))
|
||||||
|
$(eval $(call HostBuild))
|
||||||
|
@ -1,504 +0,0 @@
|
|||||||
GNU LESSER GENERAL PUBLIC LICENSE
|
|
||||||
Version 2.1, February 1999
|
|
||||||
|
|
||||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
|
||||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
[This is the first released version of the Lesser GPL. It also counts
|
|
||||||
as the successor of the GNU Library Public License, version 2, hence
|
|
||||||
the version number 2.1.]
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
Licenses are intended to guarantee your freedom to share and change
|
|
||||||
free software--to make sure the software is free for all its users.
|
|
||||||
|
|
||||||
This license, the Lesser General Public License, applies to some
|
|
||||||
specially designated software packages--typically libraries--of the
|
|
||||||
Free Software Foundation and other authors who decide to use it. You
|
|
||||||
can use it too, but we suggest you first think carefully about whether
|
|
||||||
this license or the ordinary General Public License is the better
|
|
||||||
strategy to use in any particular case, based on the explanations below.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom of use,
|
|
||||||
not price. Our General Public Licenses are designed to make sure that
|
|
||||||
you have the freedom to distribute copies of free software (and charge
|
|
||||||
for this service if you wish); that you receive source code or can get
|
|
||||||
it if you want it; that you can change the software and use pieces of
|
|
||||||
it in new free programs; and that you are informed that you can do
|
|
||||||
these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
distributors to deny you these rights or to ask you to surrender these
|
|
||||||
rights. These restrictions translate to certain responsibilities for
|
|
||||||
you if you distribute copies of the library or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of the library, whether gratis
|
|
||||||
or for a fee, you must give the recipients all the rights that we gave
|
|
||||||
you. You must make sure that they, too, receive or can get the source
|
|
||||||
code. If you link other code with the library, you must provide
|
|
||||||
complete object files to the recipients, so that they can relink them
|
|
||||||
with the library after making changes to the library and recompiling
|
|
||||||
it. And you must show them these terms so they know their rights.
|
|
||||||
|
|
||||||
We protect your rights with a two-step method: (1) we copyright the
|
|
||||||
library, and (2) we offer you this license, which gives you legal
|
|
||||||
permission to copy, distribute and/or modify the library.
|
|
||||||
|
|
||||||
To protect each distributor, we want to make it very clear that
|
|
||||||
there is no warranty for the free library. Also, if the library is
|
|
||||||
modified by someone else and passed on, the recipients should know
|
|
||||||
that what they have is not the original version, so that the original
|
|
||||||
author's reputation will not be affected by problems that might be
|
|
||||||
introduced by others.
|
|
||||||
|
|
||||||
Finally, software patents pose a constant threat to the existence of
|
|
||||||
any free program. We wish to make sure that a company cannot
|
|
||||||
effectively restrict the users of a free program by obtaining a
|
|
||||||
restrictive license from a patent holder. Therefore, we insist that
|
|
||||||
any patent license obtained for a version of the library must be
|
|
||||||
consistent with the full freedom of use specified in this license.
|
|
||||||
|
|
||||||
Most GNU software, including some libraries, is covered by the
|
|
||||||
ordinary GNU General Public License. This license, the GNU Lesser
|
|
||||||
General Public License, applies to certain designated libraries, and
|
|
||||||
is quite different from the ordinary General Public License. We use
|
|
||||||
this license for certain libraries in order to permit linking those
|
|
||||||
libraries into non-free programs.
|
|
||||||
|
|
||||||
When a program is linked with a library, whether statically or using
|
|
||||||
a shared library, the combination of the two is legally speaking a
|
|
||||||
combined work, a derivative of the original library. The ordinary
|
|
||||||
General Public License therefore permits such linking only if the
|
|
||||||
entire combination fits its criteria of freedom. The Lesser General
|
|
||||||
Public License permits more lax criteria for linking other code with
|
|
||||||
the library.
|
|
||||||
|
|
||||||
We call this license the "Lesser" General Public License because it
|
|
||||||
does Less to protect the user's freedom than the ordinary General
|
|
||||||
Public License. It also provides other free software developers Less
|
|
||||||
of an advantage over competing non-free programs. These disadvantages
|
|
||||||
are the reason we use the ordinary General Public License for many
|
|
||||||
libraries. However, the Lesser license provides advantages in certain
|
|
||||||
special circumstances.
|
|
||||||
|
|
||||||
For example, on rare occasions, there may be a special need to
|
|
||||||
encourage the widest possible use of a certain library, so that it becomes
|
|
||||||
a de-facto standard. To achieve this, non-free programs must be
|
|
||||||
allowed to use the library. A more frequent case is that a free
|
|
||||||
library does the same job as widely used non-free libraries. In this
|
|
||||||
case, there is little to gain by limiting the free library to free
|
|
||||||
software only, so we use the Lesser General Public License.
|
|
||||||
|
|
||||||
In other cases, permission to use a particular library in non-free
|
|
||||||
programs enables a greater number of people to use a large body of
|
|
||||||
free software. For example, permission to use the GNU C Library in
|
|
||||||
non-free programs enables many more people to use the whole GNU
|
|
||||||
operating system, as well as its variant, the GNU/Linux operating
|
|
||||||
system.
|
|
||||||
|
|
||||||
Although the Lesser General Public License is Less protective of the
|
|
||||||
users' freedom, it does ensure that the user of a program that is
|
|
||||||
linked with the Library has the freedom and the wherewithal to run
|
|
||||||
that program using a modified version of the Library.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow. Pay close attention to the difference between a
|
|
||||||
"work based on the library" and a "work that uses the library". The
|
|
||||||
former contains code derived from the library, whereas the latter must
|
|
||||||
be combined with the library in order to run.
|
|
||||||
|
|
||||||
GNU LESSER GENERAL PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. This License Agreement applies to any software library or other
|
|
||||||
program which contains a notice placed by the copyright holder or
|
|
||||||
other authorized party saying it may be distributed under the terms of
|
|
||||||
this Lesser General Public License (also called "this License").
|
|
||||||
Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
A "library" means a collection of software functions and/or data
|
|
||||||
prepared so as to be conveniently linked with application programs
|
|
||||||
(which use some of those functions and data) to form executables.
|
|
||||||
|
|
||||||
The "Library", below, refers to any such software library or work
|
|
||||||
which has been distributed under these terms. A "work based on the
|
|
||||||
Library" means either the Library or any derivative work under
|
|
||||||
copyright law: that is to say, a work containing the Library or a
|
|
||||||
portion of it, either verbatim or with modifications and/or translated
|
|
||||||
straightforwardly into another language. (Hereinafter, translation is
|
|
||||||
included without limitation in the term "modification".)
|
|
||||||
|
|
||||||
"Source code" for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For a library, complete source code means
|
|
||||||
all the source code for all modules it contains, plus any associated
|
|
||||||
interface definition files, plus the scripts used to control compilation
|
|
||||||
and installation of the library.
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running a program using the Library is not restricted, and output from
|
|
||||||
such a program is covered only if its contents constitute a work based
|
|
||||||
on the Library (independent of the use of the Library in a tool for
|
|
||||||
writing it). Whether that is true depends on what the Library does
|
|
||||||
and what the program that uses the Library does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Library's
|
|
||||||
complete source code as you receive it, in any medium, provided that
|
|
||||||
you conspicuously and appropriately publish on each copy an
|
|
||||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
|
||||||
all the notices that refer to this License and to the absence of any
|
|
||||||
warranty; and distribute a copy of this License along with the
|
|
||||||
Library.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy,
|
|
||||||
and you may at your option offer warranty protection in exchange for a
|
|
||||||
fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Library or any portion
|
|
||||||
of it, thus forming a work based on the Library, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The modified work must itself be a software library.
|
|
||||||
|
|
||||||
b) You must cause the files modified to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
c) You must cause the whole of the work to be licensed at no
|
|
||||||
charge to all third parties under the terms of this License.
|
|
||||||
|
|
||||||
d) If a facility in the modified Library refers to a function or a
|
|
||||||
table of data to be supplied by an application program that uses
|
|
||||||
the facility, other than as an argument passed when the facility
|
|
||||||
is invoked, then you must make a good faith effort to ensure that,
|
|
||||||
in the event an application does not supply such function or
|
|
||||||
table, the facility still operates, and performs whatever part of
|
|
||||||
its purpose remains meaningful.
|
|
||||||
|
|
||||||
(For example, a function in a library to compute square roots has
|
|
||||||
a purpose that is entirely well-defined independent of the
|
|
||||||
application. Therefore, Subsection 2d requires that any
|
|
||||||
application-supplied function or table used by this function must
|
|
||||||
be optional: if the application does not supply it, the square
|
|
||||||
root function must still compute square roots.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Library,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Library, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote
|
|
||||||
it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Library.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Library
|
|
||||||
with the Library (or with a work based on the Library) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
|
||||||
License instead of this License to a given copy of the Library. To do
|
|
||||||
this, you must alter all the notices that refer to this License, so
|
|
||||||
that they refer to the ordinary GNU General Public License, version 2,
|
|
||||||
instead of to this License. (If a newer version than version 2 of the
|
|
||||||
ordinary GNU General Public License has appeared, then you can specify
|
|
||||||
that version instead if you wish.) Do not make any other change in
|
|
||||||
these notices.
|
|
||||||
|
|
||||||
Once this change is made in a given copy, it is irreversible for
|
|
||||||
that copy, so the ordinary GNU General Public License applies to all
|
|
||||||
subsequent copies and derivative works made from that copy.
|
|
||||||
|
|
||||||
This option is useful when you wish to copy part of the code of
|
|
||||||
the Library into a program that is not a library.
|
|
||||||
|
|
||||||
4. You may copy and distribute the Library (or a portion or
|
|
||||||
derivative of it, under Section 2) in object code or executable form
|
|
||||||
under the terms of Sections 1 and 2 above provided that you accompany
|
|
||||||
it with the complete corresponding machine-readable source code, which
|
|
||||||
must be distributed under the terms of Sections 1 and 2 above on a
|
|
||||||
medium customarily used for software interchange.
|
|
||||||
|
|
||||||
If distribution of object code is made by offering access to copy
|
|
||||||
from a designated place, then offering equivalent access to copy the
|
|
||||||
source code from the same place satisfies the requirement to
|
|
||||||
distribute the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
5. A program that contains no derivative of any portion of the
|
|
||||||
Library, but is designed to work with the Library by being compiled or
|
|
||||||
linked with it, is called a "work that uses the Library". Such a
|
|
||||||
work, in isolation, is not a derivative work of the Library, and
|
|
||||||
therefore falls outside the scope of this License.
|
|
||||||
|
|
||||||
However, linking a "work that uses the Library" with the Library
|
|
||||||
creates an executable that is a derivative of the Library (because it
|
|
||||||
contains portions of the Library), rather than a "work that uses the
|
|
||||||
library". The executable is therefore covered by this License.
|
|
||||||
Section 6 states terms for distribution of such executables.
|
|
||||||
|
|
||||||
When a "work that uses the Library" uses material from a header file
|
|
||||||
that is part of the Library, the object code for the work may be a
|
|
||||||
derivative work of the Library even though the source code is not.
|
|
||||||
Whether this is true is especially significant if the work can be
|
|
||||||
linked without the Library, or if the work is itself a library. The
|
|
||||||
threshold for this to be true is not precisely defined by law.
|
|
||||||
|
|
||||||
If such an object file uses only numerical parameters, data
|
|
||||||
structure layouts and accessors, and small macros and small inline
|
|
||||||
functions (ten lines or less in length), then the use of the object
|
|
||||||
file is unrestricted, regardless of whether it is legally a derivative
|
|
||||||
work. (Executables containing this object code plus portions of the
|
|
||||||
Library will still fall under Section 6.)
|
|
||||||
|
|
||||||
Otherwise, if the work is a derivative of the Library, you may
|
|
||||||
distribute the object code for the work under the terms of Section 6.
|
|
||||||
Any executables containing that work also fall under Section 6,
|
|
||||||
whether or not they are linked directly with the Library itself.
|
|
||||||
|
|
||||||
6. As an exception to the Sections above, you may also combine or
|
|
||||||
link a "work that uses the Library" with the Library to produce a
|
|
||||||
work containing portions of the Library, and distribute that work
|
|
||||||
under terms of your choice, provided that the terms permit
|
|
||||||
modification of the work for the customer's own use and reverse
|
|
||||||
engineering for debugging such modifications.
|
|
||||||
|
|
||||||
You must give prominent notice with each copy of the work that the
|
|
||||||
Library is used in it and that the Library and its use are covered by
|
|
||||||
this License. You must supply a copy of this License. If the work
|
|
||||||
during execution displays copyright notices, you must include the
|
|
||||||
copyright notice for the Library among them, as well as a reference
|
|
||||||
directing the user to the copy of this License. Also, you must do one
|
|
||||||
of these things:
|
|
||||||
|
|
||||||
a) Accompany the work with the complete corresponding
|
|
||||||
machine-readable source code for the Library including whatever
|
|
||||||
changes were used in the work (which must be distributed under
|
|
||||||
Sections 1 and 2 above); and, if the work is an executable linked
|
|
||||||
with the Library, with the complete machine-readable "work that
|
|
||||||
uses the Library", as object code and/or source code, so that the
|
|
||||||
user can modify the Library and then relink to produce a modified
|
|
||||||
executable containing the modified Library. (It is understood
|
|
||||||
that the user who changes the contents of definitions files in the
|
|
||||||
Library will not necessarily be able to recompile the application
|
|
||||||
to use the modified definitions.)
|
|
||||||
|
|
||||||
b) Use a suitable shared library mechanism for linking with the
|
|
||||||
Library. A suitable mechanism is one that (1) uses at run time a
|
|
||||||
copy of the library already present on the user's computer system,
|
|
||||||
rather than copying library functions into the executable, and (2)
|
|
||||||
will operate properly with a modified version of the library, if
|
|
||||||
the user installs one, as long as the modified version is
|
|
||||||
interface-compatible with the version that the work was made with.
|
|
||||||
|
|
||||||
c) Accompany the work with a written offer, valid for at
|
|
||||||
least three years, to give the same user the materials
|
|
||||||
specified in Subsection 6a, above, for a charge no more
|
|
||||||
than the cost of performing this distribution.
|
|
||||||
|
|
||||||
d) If distribution of the work is made by offering access to copy
|
|
||||||
from a designated place, offer equivalent access to copy the above
|
|
||||||
specified materials from the same place.
|
|
||||||
|
|
||||||
e) Verify that the user has already received a copy of these
|
|
||||||
materials or that you have already sent this user a copy.
|
|
||||||
|
|
||||||
For an executable, the required form of the "work that uses the
|
|
||||||
Library" must include any data and utility programs needed for
|
|
||||||
reproducing the executable from it. However, as a special exception,
|
|
||||||
the materials to be distributed need not include anything that is
|
|
||||||
normally distributed (in either source or binary form) with the major
|
|
||||||
components (compiler, kernel, and so on) of the operating system on
|
|
||||||
which the executable runs, unless that component itself accompanies
|
|
||||||
the executable.
|
|
||||||
|
|
||||||
It may happen that this requirement contradicts the license
|
|
||||||
restrictions of other proprietary libraries that do not normally
|
|
||||||
accompany the operating system. Such a contradiction means you cannot
|
|
||||||
use both them and the Library together in an executable that you
|
|
||||||
distribute.
|
|
||||||
|
|
||||||
7. You may place library facilities that are a work based on the
|
|
||||||
Library side-by-side in a single library together with other library
|
|
||||||
facilities not covered by this License, and distribute such a combined
|
|
||||||
library, provided that the separate distribution of the work based on
|
|
||||||
the Library and of the other library facilities is otherwise
|
|
||||||
permitted, and provided that you do these two things:
|
|
||||||
|
|
||||||
a) Accompany the combined library with a copy of the same work
|
|
||||||
based on the Library, uncombined with any other library
|
|
||||||
facilities. This must be distributed under the terms of the
|
|
||||||
Sections above.
|
|
||||||
|
|
||||||
b) Give prominent notice with the combined library of the fact
|
|
||||||
that part of it is a work based on the Library, and explaining
|
|
||||||
where to find the accompanying uncombined form of the same work.
|
|
||||||
|
|
||||||
8. You may not copy, modify, sublicense, link with, or distribute
|
|
||||||
the Library except as expressly provided under this License. Any
|
|
||||||
attempt otherwise to copy, modify, sublicense, link with, or
|
|
||||||
distribute the Library is void, and will automatically terminate your
|
|
||||||
rights under this License. However, parties who have received copies,
|
|
||||||
or rights, from you under this License will not have their licenses
|
|
||||||
terminated so long as such parties remain in full compliance.
|
|
||||||
|
|
||||||
9. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Library or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Library (or any work based on the
|
|
||||||
Library), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Library or works based on it.
|
|
||||||
|
|
||||||
10. Each time you redistribute the Library (or any work based on the
|
|
||||||
Library), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute, link with or modify the Library
|
|
||||||
subject to these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties with
|
|
||||||
this License.
|
|
||||||
|
|
||||||
11. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Library at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Library by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Library.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under any
|
|
||||||
particular circumstance, the balance of the section is intended to apply,
|
|
||||||
and the section as a whole is intended to apply in other circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
12. If the distribution and/or use of the Library is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Library under this License may add
|
|
||||||
an explicit geographical distribution limitation excluding those countries,
|
|
||||||
so that distribution is permitted only in or among countries not thus
|
|
||||||
excluded. In such case, this License incorporates the limitation as if
|
|
||||||
written in the body of this License.
|
|
||||||
|
|
||||||
13. The Free Software Foundation may publish revised and/or new
|
|
||||||
versions of the Lesser General Public License from time to time.
|
|
||||||
Such new versions will be similar in spirit to the present version,
|
|
||||||
but may differ in detail to address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Library
|
|
||||||
specifies a version number of this License which applies to it and
|
|
||||||
"any later version", you have the option of following the terms and
|
|
||||||
conditions either of that version or of any later version published by
|
|
||||||
the Free Software Foundation. If the Library does not specify a
|
|
||||||
license version number, you may choose any version ever published by
|
|
||||||
the Free Software Foundation.
|
|
||||||
|
|
||||||
14. If you wish to incorporate parts of the Library into other free
|
|
||||||
programs whose distribution conditions are incompatible with these,
|
|
||||||
write to the author to ask for permission. For software which is
|
|
||||||
copyrighted by the Free Software Foundation, write to the Free
|
|
||||||
Software Foundation; we sometimes make exceptions for this. Our
|
|
||||||
decision will be guided by the two goals of preserving the free status
|
|
||||||
of all derivatives of our free software and of promoting the sharing
|
|
||||||
and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
|
||||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
|
||||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
|
||||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
|
||||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
|
||||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
|
||||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
|
||||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
|
||||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
|
||||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
|
||||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
|
||||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
|
||||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
|
||||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
|
||||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
||||||
DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Libraries
|
|
||||||
|
|
||||||
If you develop a new library, and you want it to be of the greatest
|
|
||||||
possible use to the public, we recommend making it free software that
|
|
||||||
everyone can redistribute and change. You can do so by permitting
|
|
||||||
redistribution under these terms (or, alternatively, under the terms of the
|
|
||||||
ordinary General Public License).
|
|
||||||
|
|
||||||
To apply these terms, attach the following notices to the library. It is
|
|
||||||
safest to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least the
|
|
||||||
"copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the library's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU Lesser General Public
|
|
||||||
License as published by the Free Software Foundation; either
|
|
||||||
version 2 of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
Lesser General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Lesser General Public
|
|
||||||
License along with this library; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
|
||||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1990
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
That's all there is to it!
|
|
||||||
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
Copyright status on all included code:
|
|
||||||
|
|
||||||
All files which have no copyright comments are original works
|
|
||||||
Copyright (C) 2005-2006 Rich Felker. The decision to exclude such
|
|
||||||
comments is intentional, as it should be possible to carry around the
|
|
||||||
complete source code on tiny storage media. All public header files
|
|
||||||
(include/*) should be treated as Public Domain as they intentionally
|
|
||||||
contain no content which can be covered by copyright. Some source
|
|
||||||
modules may fall in this category as well. If you believe that a file
|
|
||||||
is so trivial that it should be in the Public Domain, please contact
|
|
||||||
me and, if I agree, I will explicitly release it from copyright.
|
|
||||||
|
|
||||||
Some code has been modified by the OpenWrt project, this includes
|
|
||||||
the conversion from char map files to C arrays and the iconv.h header
|
|
||||||
file in particular.
|
|
||||||
|
|
||||||
The library as a whole is licensed under the GNU LGPL version 2.1.
|
|
||||||
See the file COPYING for the text of this license.
|
|
||||||
|
|
||||||
The original source can be accessed at svn://svn.mplayerhq.hu/libc/trunk
|
|
@ -1,79 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2010-2012 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This Makefile and the code shipped in src/ is free software, licensed
|
|
||||||
# under the GNU Lesser General Public License, version 2.1 and later.
|
|
||||||
# See src/COPYING for more information.
|
|
||||||
#
|
|
||||||
# Refer to src/COPYRIGHT for copyright statements on the source files.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_NAME:=libiconv
|
|
||||||
PKG_RELEASE:=8
|
|
||||||
|
|
||||||
PKG_LICENSE:=LGPL-2.1
|
|
||||||
PKG_LICENSE_FILES:=LICENSE
|
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
|
||||||
|
|
||||||
define Package/libiconv
|
|
||||||
SECTION:=libs
|
|
||||||
CATEGORY:=Libraries
|
|
||||||
TITLE:=Tiny drop-in replacement for the GNU Character set conversion library
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Configure
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
$(TARGET_CC) $(TARGET_CFLAGS) -c $(PKG_BUILD_DIR)/iconv.c -o $(PKG_BUILD_DIR)/iconv.o -I$(PKG_BUILD_DIR)/include $(FPIC)
|
|
||||||
$(TARGET_CROSS)ar rcs $(PKG_BUILD_DIR)/libiconv.a $(PKG_BUILD_DIR)/iconv.o
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/InstallDev
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/libiconv-stub/lib
|
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libiconv.a $(1)/usr/lib/libiconv-stub/lib/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/libiconv-stub/include
|
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/iconv.h $(1)/usr/lib/libiconv-stub/include/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/share/aclocal
|
|
||||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/m4/* $(1)/usr/share/aclocal/
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/libiconv/install
|
|
||||||
$(INSTALL_DIR) $(1)/tmp
|
|
||||||
touch $(1)/tmp/.libiconv-placeholder
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Prepare
|
|
||||||
mkdir -p $(HOST_BUILD_DIR)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Configure
|
|
||||||
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Compile
|
|
||||||
$(HOSTCC) -c src/iconv.c -o $(HOST_BUILD_DIR)/iconv.o -Isrc/include -fPIC
|
|
||||||
ar rcs $(HOST_BUILD_DIR)/libiconv.a $(HOST_BUILD_DIR)/iconv.o
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Host/Install
|
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib
|
|
||||||
$(INSTALL_DATA) $(HOST_BUILD_DIR)/libiconv.a $(STAGING_DIR_HOSTPKG)/lib/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
|
|
||||||
$(INSTALL_DATA) ./src/include/iconv.h $(STAGING_DIR_HOSTPKG)/include/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/aclocal
|
|
||||||
$(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOSTPKG)/share/aclocal/
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
|
||||||
$(eval $(call BuildPackage,libiconv))
|
|
@ -1,6 +0,0 @@
|
|||||||
The source file iconv.m4 contains the following message
|
|
||||||
|
|
||||||
Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
|
|
||||||
This file is free software; the Free Software Foundation
|
|
||||||
gives unlimited permission to copy and/or distribute it,
|
|
||||||
with or without modifications, as long as this notice is preserved.
|
|
@ -1,449 +0,0 @@
|
|||||||
#include <iconv.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <wchar.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <strings.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
#include <dirent.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/* builtin charmaps */
|
|
||||||
#include "charmaps.h"
|
|
||||||
|
|
||||||
/* only 0-7 are valid as dest charset */
|
|
||||||
#define UTF_16BE 000
|
|
||||||
#define UTF_16LE 001
|
|
||||||
#define UTF_32BE 002
|
|
||||||
#define UTF_32LE 003
|
|
||||||
#define WCHAR_T 004
|
|
||||||
#define UTF_8 005
|
|
||||||
#define US_ASCII 006
|
|
||||||
#define LATIN_1 007
|
|
||||||
|
|
||||||
/* additional charsets with algorithmic conversion */
|
|
||||||
#define LATIN_9 010
|
|
||||||
#define TIS_620 011
|
|
||||||
#define JIS_0201 012
|
|
||||||
|
|
||||||
/* some programs like php need this */
|
|
||||||
int _libiconv_version = _LIBICONV_VERSION;
|
|
||||||
|
|
||||||
/* these must match the constants above */
|
|
||||||
static const unsigned char charsets[] =
|
|
||||||
"\005" "UTF-8" "\0"
|
|
||||||
"\004" "WCHAR_T" "\0"
|
|
||||||
"\000" "UTF-16BE" "\0"
|
|
||||||
"\001" "UTF-16LE" "\0"
|
|
||||||
"\002" "UTF-32BE" "\0"
|
|
||||||
"\003" "UTF-32LE" "\0"
|
|
||||||
"\006" "ASCII" "\0"
|
|
||||||
"\006" "US-ASCII" "\0"
|
|
||||||
"\006" "ISO646-US" "\0"
|
|
||||||
"\006" "ISO_646.IRV:1991" "\0"
|
|
||||||
"\006" "ISO-IR-6" "\0"
|
|
||||||
"\006" "ANSI_X3.4-1968" "\0"
|
|
||||||
"\006" "ANSI_X3.4-1986" "\0"
|
|
||||||
"\006" "CP367" "\0"
|
|
||||||
"\006" "IBM367" "\0"
|
|
||||||
"\006" "US" "\0"
|
|
||||||
"\006" "CSASCII" "\0"
|
|
||||||
"\007" "ISO-8859-1" "\0"
|
|
||||||
"\007" "LATIN1" "\0"
|
|
||||||
"\010" "ISO-8859-15""\0"
|
|
||||||
"\010" "LATIN9" "\0"
|
|
||||||
"\011" "ISO-8859-11""\0"
|
|
||||||
"\011" "TIS-620" "\0"
|
|
||||||
"\012" "JIS-0201" "\0"
|
|
||||||
"\377";
|
|
||||||
|
|
||||||
/* separate identifiers for sbcs/dbcs/etc map type */
|
|
||||||
#define UCS2_8BIT 000
|
|
||||||
#define UCS3_8BIT 001
|
|
||||||
#define EUC 002
|
|
||||||
#define EUC_TW 003
|
|
||||||
#define SHIFT_JIS 004
|
|
||||||
#define BIG5 005
|
|
||||||
#define GBK 006
|
|
||||||
|
|
||||||
/* FIXME: these are not implemented yet
|
|
||||||
// EUC: A1-FE A1-FE
|
|
||||||
// GBK: 81-FE 40-7E,80-FE
|
|
||||||
// Big5: A1-FE 40-7E,A1-FE
|
|
||||||
*/
|
|
||||||
|
|
||||||
static const unsigned short maplen[] = {
|
|
||||||
[UCS2_8BIT] = 4+ 2* 128,
|
|
||||||
[UCS3_8BIT] = 4+ 3* 128,
|
|
||||||
[EUC] = 4+ 2* 94*94,
|
|
||||||
[SHIFT_JIS] = 4+ 2* 94*94,
|
|
||||||
[BIG5] = 4+ 2* 94*157,
|
|
||||||
[GBK] = 4+ 2* 126*190,
|
|
||||||
[EUC_TW] = 4+ 2* 2*94*94,
|
|
||||||
};
|
|
||||||
|
|
||||||
static int find_charmap(const char *name)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
for (i = 0; i < (sizeof(charmaps) / sizeof(charmaps[0])); i++)
|
|
||||||
if (!strcasecmp(charmaps[i].name, name))
|
|
||||||
return i;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int find_charset(const char *name)
|
|
||||||
{
|
|
||||||
const unsigned char *s;
|
|
||||||
for (s=charsets; *s<0xff && strcasecmp(s+1, name); s+=strlen(s)+1);
|
|
||||||
return *s;
|
|
||||||
}
|
|
||||||
|
|
||||||
iconv_t iconv_open(const char *to, const char *from)
|
|
||||||
{
|
|
||||||
unsigned f, t;
|
|
||||||
int m;
|
|
||||||
|
|
||||||
if ((t = find_charset(to)) > 8)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if ((f = find_charset(from)) < 255)
|
|
||||||
return 0 | (t<<1) | (f<<8);
|
|
||||||
|
|
||||||
if ((m = find_charmap(from)) > -1)
|
|
||||||
return 1 | (t<<1) | (m<<8);
|
|
||||||
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int iconv_close(iconv_t cd)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline wchar_t get_16(const unsigned char *s, int endian)
|
|
||||||
{
|
|
||||||
endian &= 1;
|
|
||||||
return s[endian]<<8 | s[endian^1];
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline void put_16(unsigned char *s, wchar_t c, int endian)
|
|
||||||
{
|
|
||||||
endian &= 1;
|
|
||||||
s[endian] = c>>8;
|
|
||||||
s[endian^1] = c;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int utf8enc_wchar(char *outb, wchar_t c)
|
|
||||||
{
|
|
||||||
if (c <= 0x7F) {
|
|
||||||
*outb = c;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
else if (c <= 0x7FF) {
|
|
||||||
*outb++ = ((c >> 6) & 0x1F) | 0xC0;
|
|
||||||
*outb++ = ( c & 0x3F) | 0x80;
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
else if (c <= 0xFFFF) {
|
|
||||||
*outb++ = ((c >> 12) & 0x0F) | 0xE0;
|
|
||||||
*outb++ = ((c >> 6) & 0x3F) | 0x80;
|
|
||||||
*outb++ = ( c & 0x3F) | 0x80;
|
|
||||||
return 3;
|
|
||||||
}
|
|
||||||
else if (c <= 0x10FFFF) {
|
|
||||||
*outb++ = ((c >> 18) & 0x07) | 0xF0;
|
|
||||||
*outb++ = ((c >> 12) & 0x3F) | 0x80;
|
|
||||||
*outb++ = ((c >> 6) & 0x3F) | 0x80;
|
|
||||||
*outb++ = ( c & 0x3F) | 0x80;
|
|
||||||
return 4;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
*outb++ = '?';
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int utf8seq_is_overlong(char *s, int n)
|
|
||||||
{
|
|
||||||
switch (n)
|
|
||||||
{
|
|
||||||
case 2:
|
|
||||||
/* 1100000x (10xxxxxx) */
|
|
||||||
return (((*s >> 1) == 0x60) &&
|
|
||||||
((*(s+1) >> 6) == 0x02));
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
/* 11100000 100xxxxx (10xxxxxx) */
|
|
||||||
return ((*s == 0xE0) &&
|
|
||||||
((*(s+1) >> 5) == 0x04) &&
|
|
||||||
((*(s+2) >> 6) == 0x02));
|
|
||||||
|
|
||||||
case 4:
|
|
||||||
/* 11110000 1000xxxx (10xxxxxx 10xxxxxx) */
|
|
||||||
return ((*s == 0xF0) &&
|
|
||||||
((*(s+1) >> 4) == 0x08) &&
|
|
||||||
((*(s+2) >> 6) == 0x02) &&
|
|
||||||
((*(s+3) >> 6) == 0x02));
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int utf8seq_is_surrogate(char *s, int n)
|
|
||||||
{
|
|
||||||
return ((n == 3) && (*s == 0xED) && (*(s+1) >= 0xA0) && (*(s+1) <= 0xBF));
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int utf8seq_is_illegal(char *s, int n)
|
|
||||||
{
|
|
||||||
return ((n == 3) && (*s == 0xEF) && (*(s+1) == 0xBF) &&
|
|
||||||
(*(s+2) >= 0xBE) && (*(s+2) <= 0xBF));
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int utf8dec_wchar(wchar_t *c, unsigned char *in, size_t inb)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
int n = -1;
|
|
||||||
|
|
||||||
/* trivial char */
|
|
||||||
if (*in <= 0x7F) {
|
|
||||||
*c = *in;
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* find utf8 sequence length */
|
|
||||||
if ((*in & 0xE0) == 0xC0) n = 2;
|
|
||||||
else if ((*in & 0xF0) == 0xE0) n = 3;
|
|
||||||
else if ((*in & 0xF8) == 0xF0) n = 4;
|
|
||||||
else if ((*in & 0xFC) == 0xF8) n = 5;
|
|
||||||
else if ((*in & 0xFE) == 0xFC) n = 6;
|
|
||||||
|
|
||||||
/* starved? */
|
|
||||||
if (n > inb)
|
|
||||||
return -2;
|
|
||||||
|
|
||||||
/* decode ... */
|
|
||||||
if (n > 1 && n < 5) {
|
|
||||||
/* reject invalid sequences */
|
|
||||||
if (utf8seq_is_overlong(in, n) ||
|
|
||||||
utf8seq_is_surrogate(in, n) ||
|
|
||||||
utf8seq_is_illegal(in, n))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
/* decode ... */
|
|
||||||
*c = (char)(*in++ & (0x7F >> n));
|
|
||||||
|
|
||||||
for (i = 1; i < n; i++) {
|
|
||||||
/* illegal continuation byte */
|
|
||||||
if (*in < 0x80 || *in > 0xBF)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
*c = (*c << 6) | (*in++ & 0x3F);
|
|
||||||
}
|
|
||||||
|
|
||||||
return n;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* unmapped sequence (> 4) */
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline wchar_t latin9_translit(wchar_t c)
|
|
||||||
{
|
|
||||||
/* a number of trivial iso-8859-15 <> utf-8 transliterations */
|
|
||||||
switch (c) {
|
|
||||||
case 0x20AC: return 0xA4; /* Euro */
|
|
||||||
case 0x0160: return 0xA6; /* S caron */
|
|
||||||
case 0x0161: return 0xA8; /* s caron */
|
|
||||||
case 0x017D: return 0xB4; /* Z caron */
|
|
||||||
case 0x017E: return 0xB8; /* z caron */
|
|
||||||
case 0x0152: return 0xBC; /* OE */
|
|
||||||
case 0x0153: return 0xBD; /* oe */
|
|
||||||
case 0x0178: return 0xBE; /* Y diaeresis */
|
|
||||||
default: return 0xFFFD; /* cannot translate */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t iconv(iconv_t cd, char **in, size_t *inb, char **out, size_t *outb)
|
|
||||||
{
|
|
||||||
size_t x=0;
|
|
||||||
unsigned char to = (cd>>1)&127;
|
|
||||||
unsigned char from = 255;
|
|
||||||
const unsigned char *map = 0;
|
|
||||||
char tmp[MB_LEN_MAX];
|
|
||||||
wchar_t c, d;
|
|
||||||
size_t k, l;
|
|
||||||
int err;
|
|
||||||
|
|
||||||
if (!in || !*in || !*inb) return 0;
|
|
||||||
|
|
||||||
if (cd & 1)
|
|
||||||
map = charmaps[cd>>8].map;
|
|
||||||
else
|
|
||||||
from = cd>>8;
|
|
||||||
|
|
||||||
for (; *inb; *in+=l, *inb-=l) {
|
|
||||||
c = *(unsigned char *)*in;
|
|
||||||
l = 1;
|
|
||||||
if (from >= UTF_8 && c < 0x80) goto charok;
|
|
||||||
switch (from) {
|
|
||||||
case WCHAR_T:
|
|
||||||
l = sizeof(wchar_t);
|
|
||||||
if (*inb < l) goto starved;
|
|
||||||
c = *(wchar_t *)*in;
|
|
||||||
break;
|
|
||||||
case UTF_8:
|
|
||||||
l = utf8dec_wchar(&c, *in, *inb);
|
|
||||||
if (!l) l++;
|
|
||||||
else if (l == (size_t)-1) goto ilseq;
|
|
||||||
else if (l == (size_t)-2) goto starved;
|
|
||||||
break;
|
|
||||||
case US_ASCII:
|
|
||||||
goto ilseq;
|
|
||||||
case LATIN_9:
|
|
||||||
if ((unsigned)c - 0xa4 <= 0xbe - 0xa4) {
|
|
||||||
static const unsigned char map[] = {
|
|
||||||
0, 0x60, 0, 0x61, 0, 0, 0, 0, 0, 0, 0,
|
|
||||||
0, 0, 0, 0, 0x7d, 0, 0, 0, 0x7e, 0, 0, 0,
|
|
||||||
0x52, 0x53, 0x78
|
|
||||||
};
|
|
||||||
if (c == 0xa4) c = 0x20ac;
|
|
||||||
else if (map[c-0xa5]) c = 0x100 | map[c-0xa5];
|
|
||||||
}
|
|
||||||
case LATIN_1:
|
|
||||||
goto charok;
|
|
||||||
case TIS_620:
|
|
||||||
if (c >= 0xa1) c += 0x0e01-0xa1;
|
|
||||||
goto charok;
|
|
||||||
case JIS_0201:
|
|
||||||
if (c >= 0xa1) {
|
|
||||||
if (c <= 0xdf) c += 0xff61-0xa1;
|
|
||||||
else goto ilseq;
|
|
||||||
}
|
|
||||||
goto charok;
|
|
||||||
case UTF_16BE:
|
|
||||||
case UTF_16LE:
|
|
||||||
l = 2;
|
|
||||||
if (*inb < 2) goto starved;
|
|
||||||
c = get_16(*in, from);
|
|
||||||
if ((unsigned)(c-0xdc00) < 0x400) goto ilseq;
|
|
||||||
if ((unsigned)(c-0xd800) < 0x400) {
|
|
||||||
l = 4;
|
|
||||||
if (*inb < 4) goto starved;
|
|
||||||
d = get_16(*in + 2, from);
|
|
||||||
if ((unsigned)(c-0xdc00) >= 0x400) goto ilseq;
|
|
||||||
c = ((c-0xd800)<<10) | (d-0xdc00);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case UTF_32BE:
|
|
||||||
case UTF_32LE:
|
|
||||||
l = 4;
|
|
||||||
if (*inb < 4) goto starved;
|
|
||||||
// FIXME
|
|
||||||
// c = get_32(*in, from);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
/* only support ascii supersets */
|
|
||||||
if (c < 0x80) break;
|
|
||||||
switch (map[0]) {
|
|
||||||
case UCS2_8BIT:
|
|
||||||
c -= 0x80;
|
|
||||||
break;
|
|
||||||
case EUC:
|
|
||||||
if ((unsigned)c - 0xa1 >= 94) goto ilseq;
|
|
||||||
if ((unsigned)in[0][1] - 0xa1 >= 94) goto ilseq;
|
|
||||||
c = (c-0xa1)*94 + (in[0][1]-0xa1);
|
|
||||||
l = 2;
|
|
||||||
break;
|
|
||||||
case SHIFT_JIS:
|
|
||||||
if ((unsigned)c - 0xa1 <= 0xdf-0xa1) {
|
|
||||||
c += 0xff61-0xa1;
|
|
||||||
goto charok;
|
|
||||||
}
|
|
||||||
// FIXME...
|
|
||||||
l = 2;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
goto badf;
|
|
||||||
}
|
|
||||||
c = get_16(map + 4 + 2*c, 0);
|
|
||||||
if (c == 0xffff) goto ilseq;
|
|
||||||
goto charok;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((unsigned)c - 0xd800 < 0x800 || (unsigned)c >= 0x110000)
|
|
||||||
goto ilseq;
|
|
||||||
charok:
|
|
||||||
switch (to) {
|
|
||||||
case WCHAR_T:
|
|
||||||
if (*outb < sizeof(wchar_t)) goto toobig;
|
|
||||||
*(wchar_t *)*out = c;
|
|
||||||
*out += sizeof(wchar_t);
|
|
||||||
*outb -= sizeof(wchar_t);
|
|
||||||
break;
|
|
||||||
case UTF_8:
|
|
||||||
if (*outb < 4) {
|
|
||||||
k = utf8enc_wchar(tmp, c);
|
|
||||||
if (*outb < k) goto toobig;
|
|
||||||
memcpy(*out, tmp, k);
|
|
||||||
} else k = utf8enc_wchar(*out, c);
|
|
||||||
*out += k;
|
|
||||||
*outb -= k;
|
|
||||||
break;
|
|
||||||
case US_ASCII:
|
|
||||||
if (c > 0x7f) c = 0xfffd;
|
|
||||||
/* fall thru and count replacement in latin1 case */
|
|
||||||
case LATIN_9:
|
|
||||||
if (c >= 0x100 && c != 0xfffd)
|
|
||||||
c = latin9_translit(c);
|
|
||||||
/* fall through */
|
|
||||||
case LATIN_1:
|
|
||||||
if (c > 0xff) goto ilseq;
|
|
||||||
if (!*outb) goto toobig;
|
|
||||||
**out = c;
|
|
||||||
++*out;
|
|
||||||
--*outb;
|
|
||||||
break;
|
|
||||||
case UTF_16BE:
|
|
||||||
case UTF_16LE:
|
|
||||||
if (c < 0x10000) {
|
|
||||||
if (*outb < 2) goto toobig;
|
|
||||||
put_16(*out, c, to);
|
|
||||||
*out += 2;
|
|
||||||
*outb -= 2;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (*outb < 4) goto toobig;
|
|
||||||
put_16(*out, (c>>10)|0xd800, to);
|
|
||||||
put_16(*out + 2, (c&0x3ff)|0xdc00, to);
|
|
||||||
*out += 4;
|
|
||||||
*outb -= 4;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
goto badf;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return x;
|
|
||||||
ilseq:
|
|
||||||
err = EILSEQ;
|
|
||||||
x = -1;
|
|
||||||
goto end;
|
|
||||||
badf:
|
|
||||||
err = EBADF;
|
|
||||||
x = -1;
|
|
||||||
goto end;
|
|
||||||
toobig:
|
|
||||||
err = E2BIG;
|
|
||||||
x = -1;
|
|
||||||
goto end;
|
|
||||||
starved:
|
|
||||||
err = EINVAL;
|
|
||||||
end:
|
|
||||||
errno = err;
|
|
||||||
return x;
|
|
||||||
}
|
|
@ -1,80 +0,0 @@
|
|||||||
#include "charmaps/iso-8859-2.h"
|
|
||||||
#include "charmaps/iso-8859-10.h"
|
|
||||||
#include "charmaps/windows-874.h"
|
|
||||||
#include "charmaps/windows-1250.h"
|
|
||||||
#include "charmaps/koi8-r.h"
|
|
||||||
|
|
||||||
#ifdef ALL_CHARSETS
|
|
||||||
#include "charmaps/iso-8859-3.h"
|
|
||||||
#include "charmaps/iso-8859-4.h"
|
|
||||||
#include "charmaps/iso-8859-5.h"
|
|
||||||
#include "charmaps/iso-8859-6.h"
|
|
||||||
#include "charmaps/iso-8859-7.h"
|
|
||||||
#include "charmaps/iso-8859-8.h"
|
|
||||||
#include "charmaps/iso-8859-9.h"
|
|
||||||
#include "charmaps/iso-8859-13.h"
|
|
||||||
#include "charmaps/iso-8859-14.h"
|
|
||||||
#include "charmaps/iso-8859-16.h"
|
|
||||||
#include "charmaps/windows-1251.h"
|
|
||||||
#include "charmaps/windows-1252.h"
|
|
||||||
#include "charmaps/windows-1253.h"
|
|
||||||
#include "charmaps/windows-1254.h"
|
|
||||||
#include "charmaps/windows-1255.h"
|
|
||||||
#include "charmaps/windows-1256.h"
|
|
||||||
#include "charmaps/windows-1257.h"
|
|
||||||
#include "charmaps/windows-1258.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
struct charmap {
|
|
||||||
const char name[13];
|
|
||||||
const unsigned char *map;
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct charmap charmaps[] = {
|
|
||||||
{ "ISO-8859-2", map_iso_8859_2 },
|
|
||||||
{ "ISO-8859-10", map_iso_8859_10 },
|
|
||||||
|
|
||||||
#ifdef ALL_CHARSETS
|
|
||||||
{ "ISO-8859-3", map_iso_8859_3 },
|
|
||||||
{ "ISO-8859-4", map_iso_8859_4 },
|
|
||||||
{ "ISO-8859-5", map_iso_8859_5 },
|
|
||||||
{ "ISO-8859-6", map_iso_8859_6 },
|
|
||||||
{ "ISO-8859-7", map_iso_8859_7 },
|
|
||||||
{ "ISO-8859-8", map_iso_8859_8 },
|
|
||||||
{ "ISO-8859-9", map_iso_8859_9 },
|
|
||||||
{ "ISO-8859-13", map_iso_8859_13 },
|
|
||||||
{ "ISO-8859-14", map_iso_8859_14 },
|
|
||||||
{ "ISO-8859-16", map_iso_8859_16 },
|
|
||||||
#endif
|
|
||||||
|
|
||||||
{ "WINDOWS-874", map_windows_874 },
|
|
||||||
{ "WINDOWS-1250", map_windows_1250 },
|
|
||||||
|
|
||||||
#ifdef ALL_CHARSETS
|
|
||||||
{ "WINDOWS-1251", map_windows_1251 },
|
|
||||||
{ "WINDOWS-1252", map_windows_1252 },
|
|
||||||
{ "WINDOWS-1253", map_windows_1253 },
|
|
||||||
{ "WINDOWS-1254", map_windows_1254 },
|
|
||||||
{ "WINDOWS-1255", map_windows_1255 },
|
|
||||||
{ "WINDOWS-1256", map_windows_1256 },
|
|
||||||
{ "WINDOWS-1257", map_windows_1257 },
|
|
||||||
{ "WINDOWS-1258", map_windows_1258 },
|
|
||||||
#endif
|
|
||||||
|
|
||||||
{ "KOI8-R", map_koi8_r },
|
|
||||||
|
|
||||||
/* Aliases */
|
|
||||||
{ "LATIN2", map_iso_8859_2 },
|
|
||||||
{ "LATIN6", map_iso_8859_10 },
|
|
||||||
|
|
||||||
#ifdef ALL_CHARSETS
|
|
||||||
{ "ARABIC", map_iso_8859_6 },
|
|
||||||
{ "CYRILLIC", map_iso_8859_5 },
|
|
||||||
{ "GREEK", map_iso_8859_7 },
|
|
||||||
{ "HEBREW", map_iso_8859_8 },
|
|
||||||
{ "LATIN3", map_iso_8859_3 },
|
|
||||||
{ "LATIN4", map_iso_8859_4 },
|
|
||||||
{ "LATIN5", map_iso_8859_9 },
|
|
||||||
#endif
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_10[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x01, 0x04,
|
|
||||||
0x01, 0x12, 0x01, 0x22, 0x01, 0x2a, 0x01, 0x28, 0x01, 0x36, 0x00, 0xa7,
|
|
||||||
0x01, 0x3b, 0x01, 0x10, 0x01, 0x60, 0x01, 0x66, 0x01, 0x7d, 0x00, 0xad,
|
|
||||||
0x01, 0x6a, 0x01, 0x4a, 0x00, 0xb0, 0x01, 0x05, 0x01, 0x13, 0x01, 0x23,
|
|
||||||
0x01, 0x2b, 0x01, 0x29, 0x01, 0x37, 0x00, 0xb7, 0x01, 0x3c, 0x01, 0x11,
|
|
||||||
0x01, 0x61, 0x01, 0x67, 0x01, 0x7e, 0x20, 0x15, 0x01, 0x6b, 0x01, 0x4b,
|
|
||||||
0x01, 0x00, 0x00, 0xc1, 0x00, 0xc2, 0x00, 0xc3, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x01, 0x2e, 0x01, 0x0c, 0x00, 0xc9, 0x01, 0x18, 0x00, 0xcb,
|
|
||||||
0x01, 0x16, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x00, 0xd0, 0x01, 0x45,
|
|
||||||
0x01, 0x4c, 0x00, 0xd3, 0x00, 0xd4, 0x00, 0xd5, 0x00, 0xd6, 0x01, 0x68,
|
|
||||||
0x00, 0xd8, 0x01, 0x72, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x00, 0xdd,
|
|
||||||
0x00, 0xde, 0x00, 0xdf, 0x01, 0x01, 0x00, 0xe1, 0x00, 0xe2, 0x00, 0xe3,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x01, 0x2f, 0x01, 0x0d, 0x00, 0xe9,
|
|
||||||
0x01, 0x19, 0x00, 0xeb, 0x01, 0x17, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x00, 0xf0, 0x01, 0x46, 0x01, 0x4d, 0x00, 0xf3, 0x00, 0xf4, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x01, 0x69, 0x00, 0xf8, 0x01, 0x73, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x00, 0xfd, 0x00, 0xfe, 0x01, 0x38
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_13[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x20, 0x1d,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x20, 0x1e, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xd8, 0x00, 0xa9, 0x01, 0x56, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xc6, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x20, 0x1c, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xf8, 0x00, 0xb9,
|
|
||||||
0x01, 0x57, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xe6,
|
|
||||||
0x01, 0x04, 0x01, 0x2e, 0x01, 0x00, 0x01, 0x06, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x01, 0x18, 0x01, 0x12, 0x01, 0x0c, 0x00, 0xc9, 0x01, 0x79, 0x01, 0x16,
|
|
||||||
0x01, 0x22, 0x01, 0x36, 0x01, 0x2a, 0x01, 0x3b, 0x01, 0x60, 0x01, 0x43,
|
|
||||||
0x01, 0x45, 0x00, 0xd3, 0x01, 0x4c, 0x00, 0xd5, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x01, 0x72, 0x01, 0x41, 0x01, 0x5a, 0x01, 0x6a, 0x00, 0xdc, 0x01, 0x7b,
|
|
||||||
0x01, 0x7d, 0x00, 0xdf, 0x01, 0x05, 0x01, 0x2f, 0x01, 0x01, 0x01, 0x07,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x01, 0x19, 0x01, 0x13, 0x01, 0x0d, 0x00, 0xe9,
|
|
||||||
0x01, 0x7a, 0x01, 0x17, 0x01, 0x23, 0x01, 0x37, 0x01, 0x2b, 0x01, 0x3c,
|
|
||||||
0x01, 0x61, 0x01, 0x44, 0x01, 0x46, 0x00, 0xf3, 0x01, 0x4d, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x01, 0x73, 0x01, 0x42, 0x01, 0x5b, 0x01, 0x6b,
|
|
||||||
0x00, 0xfc, 0x01, 0x7c, 0x01, 0x7e, 0x20, 0x19
|
|
||||||
};
|
|
@ -1,25 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_14[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x1e, 0x02,
|
|
||||||
0x1e, 0x03, 0x00, 0xa3, 0x01, 0x0a, 0x01, 0x0b, 0x1e, 0x0a, 0x00, 0xa7,
|
|
||||||
0x1e, 0x80, 0x00, 0xa9, 0x1e, 0x82, 0x1e, 0x0b, 0x1e, 0xf2, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x01, 0x78, 0x1e, 0x1e, 0x1e, 0x1f, 0x01, 0x20, 0x01, 0x21,
|
|
||||||
0x1e, 0x40, 0x1e, 0x41, 0x00, 0xb6, 0x1e, 0x56, 0x1e, 0x81, 0x1e, 0x57,
|
|
||||||
0x1e, 0x83, 0x1e, 0x60, 0x1e, 0xf3, 0x1e, 0x84, 0x1e, 0x85, 0x1e, 0x61,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0x00, 0xc3, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x00, 0xcc, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x01, 0x74, 0x00, 0xd1,
|
|
||||||
0x00, 0xd2, 0x00, 0xd3, 0x00, 0xd4, 0x00, 0xd5, 0x00, 0xd6, 0x1e, 0x6a,
|
|
||||||
0x00, 0xd8, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x00, 0xdd,
|
|
||||||
0x01, 0x76, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0x00, 0xe3,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x00, 0xec, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x01, 0x75, 0x00, 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x1e, 0x6b, 0x00, 0xf8, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x00, 0xfd, 0x01, 0x77, 0x00, 0xff
|
|
||||||
};
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_16[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x01, 0x04,
|
|
||||||
0x01, 0x05, 0x01, 0x41, 0x20, 0xac, 0x20, 0x1e, 0x01, 0x60, 0x00, 0xa7,
|
|
||||||
0x01, 0x61, 0x00, 0xa9, 0x02, 0x18, 0x00, 0xab, 0x01, 0x79, 0x00, 0xad,
|
|
||||||
0x01, 0x7a, 0x01, 0x7b, 0x00, 0xb0, 0x00, 0xb1, 0x01, 0x0c, 0x01, 0x42,
|
|
||||||
0x01, 0x7d, 0x20, 0x1d, 0x00, 0xb6, 0x00, 0xb7, 0x01, 0x7e, 0x01, 0x0d,
|
|
||||||
0x02, 0x19, 0x00, 0xbb, 0x01, 0x52, 0x01, 0x53, 0x01, 0x78, 0x01, 0x7c,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0x01, 0x02, 0x00, 0xc4, 0x01, 0x06,
|
|
||||||
0x00, 0xc6, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x00, 0xcc, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x01, 0x10, 0x01, 0x43,
|
|
||||||
0x00, 0xd2, 0x00, 0xd3, 0x00, 0xd4, 0x01, 0x50, 0x00, 0xd6, 0x01, 0x5a,
|
|
||||||
0x01, 0x70, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x01, 0x18,
|
|
||||||
0x02, 0x1a, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0x01, 0x03,
|
|
||||||
0x00, 0xe4, 0x01, 0x07, 0x00, 0xe6, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x00, 0xec, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x01, 0x11, 0x01, 0x44, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x01, 0x51,
|
|
||||||
0x00, 0xf6, 0x01, 0x5b, 0x01, 0x71, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x01, 0x19, 0x02, 0x1b, 0x00, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_2[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x01, 0x04,
|
|
||||||
0x02, 0xd8, 0x01, 0x41, 0x00, 0xa4, 0x01, 0x3d, 0x01, 0x5a, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x01, 0x60, 0x01, 0x5e, 0x01, 0x64, 0x01, 0x79, 0x00, 0xad,
|
|
||||||
0x01, 0x7d, 0x01, 0x7b, 0x00, 0xb0, 0x01, 0x05, 0x02, 0xdb, 0x01, 0x42,
|
|
||||||
0x00, 0xb4, 0x01, 0x3e, 0x01, 0x5b, 0x02, 0xc7, 0x00, 0xb8, 0x01, 0x61,
|
|
||||||
0x01, 0x5f, 0x01, 0x65, 0x01, 0x7a, 0x02, 0xdd, 0x01, 0x7e, 0x01, 0x7c,
|
|
||||||
0x01, 0x54, 0x00, 0xc1, 0x00, 0xc2, 0x01, 0x02, 0x00, 0xc4, 0x01, 0x39,
|
|
||||||
0x01, 0x06, 0x00, 0xc7, 0x01, 0x0c, 0x00, 0xc9, 0x01, 0x18, 0x00, 0xcb,
|
|
||||||
0x01, 0x1a, 0x00, 0xcd, 0x00, 0xce, 0x01, 0x0e, 0x01, 0x10, 0x01, 0x43,
|
|
||||||
0x01, 0x47, 0x00, 0xd3, 0x00, 0xd4, 0x01, 0x50, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x01, 0x58, 0x01, 0x6e, 0x00, 0xda, 0x01, 0x70, 0x00, 0xdc, 0x00, 0xdd,
|
|
||||||
0x01, 0x62, 0x00, 0xdf, 0x01, 0x55, 0x00, 0xe1, 0x00, 0xe2, 0x01, 0x03,
|
|
||||||
0x00, 0xe4, 0x01, 0x3a, 0x01, 0x07, 0x00, 0xe7, 0x01, 0x0d, 0x00, 0xe9,
|
|
||||||
0x01, 0x19, 0x00, 0xeb, 0x01, 0x1b, 0x00, 0xed, 0x00, 0xee, 0x01, 0x0f,
|
|
||||||
0x01, 0x11, 0x01, 0x44, 0x01, 0x48, 0x00, 0xf3, 0x00, 0xf4, 0x01, 0x51,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x01, 0x59, 0x01, 0x6f, 0x00, 0xfa, 0x01, 0x71,
|
|
||||||
0x00, 0xfc, 0x00, 0xfd, 0x01, 0x63, 0x02, 0xd9
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_3[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x01, 0x26,
|
|
||||||
0x02, 0xd8, 0x00, 0xa3, 0x00, 0xa4, 0xff, 0xff, 0x01, 0x24, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x01, 0x30, 0x01, 0x5e, 0x01, 0x1e, 0x01, 0x34, 0x00, 0xad,
|
|
||||||
0xff, 0xff, 0x01, 0x7b, 0x00, 0xb0, 0x01, 0x27, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x01, 0x25, 0x00, 0xb7, 0x00, 0xb8, 0x01, 0x31,
|
|
||||||
0x01, 0x5f, 0x01, 0x1f, 0x01, 0x35, 0x00, 0xbd, 0xff, 0xff, 0x01, 0x7c,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0xff, 0xff, 0x00, 0xc4, 0x01, 0x0a,
|
|
||||||
0x01, 0x08, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x00, 0xcc, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0xff, 0xff, 0x00, 0xd1,
|
|
||||||
0x00, 0xd2, 0x00, 0xd3, 0x00, 0xd4, 0x01, 0x20, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x01, 0x1c, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x01, 0x6c,
|
|
||||||
0x01, 0x5c, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0xff, 0xff,
|
|
||||||
0x00, 0xe4, 0x01, 0x0b, 0x01, 0x09, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x00, 0xec, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0xff, 0xff, 0x00, 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x01, 0x21,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x01, 0x1d, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x01, 0x6d, 0x01, 0x5d, 0x02, 0xd9
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_4[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x01, 0x04,
|
|
||||||
0x01, 0x38, 0x01, 0x56, 0x00, 0xa4, 0x01, 0x28, 0x01, 0x3b, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x01, 0x60, 0x01, 0x12, 0x01, 0x22, 0x01, 0x66, 0x00, 0xad,
|
|
||||||
0x01, 0x7d, 0x00, 0xaf, 0x00, 0xb0, 0x01, 0x05, 0x02, 0xdb, 0x01, 0x57,
|
|
||||||
0x00, 0xb4, 0x01, 0x29, 0x01, 0x3c, 0x02, 0xc7, 0x00, 0xb8, 0x01, 0x61,
|
|
||||||
0x01, 0x13, 0x01, 0x23, 0x01, 0x67, 0x01, 0x4a, 0x01, 0x7e, 0x01, 0x4b,
|
|
||||||
0x01, 0x00, 0x00, 0xc1, 0x00, 0xc2, 0x00, 0xc3, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x01, 0x2e, 0x01, 0x0c, 0x00, 0xc9, 0x01, 0x18, 0x00, 0xcb,
|
|
||||||
0x01, 0x16, 0x00, 0xcd, 0x00, 0xce, 0x01, 0x2a, 0x01, 0x10, 0x01, 0x45,
|
|
||||||
0x01, 0x4c, 0x01, 0x36, 0x00, 0xd4, 0x00, 0xd5, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x00, 0xd8, 0x01, 0x72, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x01, 0x68,
|
|
||||||
0x01, 0x6a, 0x00, 0xdf, 0x01, 0x01, 0x00, 0xe1, 0x00, 0xe2, 0x00, 0xe3,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x01, 0x2f, 0x01, 0x0d, 0x00, 0xe9,
|
|
||||||
0x01, 0x19, 0x00, 0xeb, 0x01, 0x17, 0x00, 0xed, 0x00, 0xee, 0x01, 0x2b,
|
|
||||||
0x01, 0x11, 0x01, 0x46, 0x01, 0x4d, 0x01, 0x37, 0x00, 0xf4, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x00, 0xf8, 0x01, 0x73, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x01, 0x69, 0x01, 0x6b, 0x02, 0xd9
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_5[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x04, 0x01,
|
|
||||||
0x04, 0x02, 0x04, 0x03, 0x04, 0x04, 0x04, 0x05, 0x04, 0x06, 0x04, 0x07,
|
|
||||||
0x04, 0x08, 0x04, 0x09, 0x04, 0x0a, 0x04, 0x0b, 0x04, 0x0c, 0x00, 0xad,
|
|
||||||
0x04, 0x0e, 0x04, 0x0f, 0x04, 0x10, 0x04, 0x11, 0x04, 0x12, 0x04, 0x13,
|
|
||||||
0x04, 0x14, 0x04, 0x15, 0x04, 0x16, 0x04, 0x17, 0x04, 0x18, 0x04, 0x19,
|
|
||||||
0x04, 0x1a, 0x04, 0x1b, 0x04, 0x1c, 0x04, 0x1d, 0x04, 0x1e, 0x04, 0x1f,
|
|
||||||
0x04, 0x20, 0x04, 0x21, 0x04, 0x22, 0x04, 0x23, 0x04, 0x24, 0x04, 0x25,
|
|
||||||
0x04, 0x26, 0x04, 0x27, 0x04, 0x28, 0x04, 0x29, 0x04, 0x2a, 0x04, 0x2b,
|
|
||||||
0x04, 0x2c, 0x04, 0x2d, 0x04, 0x2e, 0x04, 0x2f, 0x04, 0x30, 0x04, 0x31,
|
|
||||||
0x04, 0x32, 0x04, 0x33, 0x04, 0x34, 0x04, 0x35, 0x04, 0x36, 0x04, 0x37,
|
|
||||||
0x04, 0x38, 0x04, 0x39, 0x04, 0x3a, 0x04, 0x3b, 0x04, 0x3c, 0x04, 0x3d,
|
|
||||||
0x04, 0x3e, 0x04, 0x3f, 0x04, 0x40, 0x04, 0x41, 0x04, 0x42, 0x04, 0x43,
|
|
||||||
0x04, 0x44, 0x04, 0x45, 0x04, 0x46, 0x04, 0x47, 0x04, 0x48, 0x04, 0x49,
|
|
||||||
0x04, 0x4a, 0x04, 0x4b, 0x04, 0x4c, 0x04, 0x4d, 0x04, 0x4e, 0x04, 0x4f,
|
|
||||||
0x21, 0x16, 0x04, 0x51, 0x04, 0x52, 0x04, 0x53, 0x04, 0x54, 0x04, 0x55,
|
|
||||||
0x04, 0x56, 0x04, 0x57, 0x04, 0x58, 0x04, 0x59, 0x04, 0x5a, 0x04, 0x5b,
|
|
||||||
0x04, 0x5c, 0x00, 0xa7, 0x04, 0x5e, 0x04, 0x5f
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_6[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0x00, 0xa4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0x0c, 0x00, 0xad,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x06, 0x1b, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x06, 0x1f,
|
|
||||||
0xff, 0xff, 0x06, 0x21, 0x06, 0x22, 0x06, 0x23, 0x06, 0x24, 0x06, 0x25,
|
|
||||||
0x06, 0x26, 0x06, 0x27, 0x06, 0x28, 0x06, 0x29, 0x06, 0x2a, 0x06, 0x2b,
|
|
||||||
0x06, 0x2c, 0x06, 0x2d, 0x06, 0x2e, 0x06, 0x2f, 0x06, 0x30, 0x06, 0x31,
|
|
||||||
0x06, 0x32, 0x06, 0x33, 0x06, 0x34, 0x06, 0x35, 0x06, 0x36, 0x06, 0x37,
|
|
||||||
0x06, 0x38, 0x06, 0x39, 0x06, 0x3a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0x06, 0x40, 0x06, 0x41, 0x06, 0x42, 0x06, 0x43,
|
|
||||||
0x06, 0x44, 0x06, 0x45, 0x06, 0x46, 0x06, 0x47, 0x06, 0x48, 0x06, 0x49,
|
|
||||||
0x06, 0x4a, 0x06, 0x4b, 0x06, 0x4c, 0x06, 0x4d, 0x06, 0x4e, 0x06, 0x4f,
|
|
||||||
0x06, 0x50, 0x06, 0x51, 0x06, 0x52, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_7[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x20, 0x18,
|
|
||||||
0x20, 0x19, 0x00, 0xa3, 0x20, 0xac, 0x20, 0xaf, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x03, 0x7a, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0xff, 0xff, 0x20, 0x15, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x03, 0x84, 0x03, 0x85, 0x03, 0x86, 0x00, 0xb7, 0x03, 0x88, 0x03, 0x89,
|
|
||||||
0x03, 0x8a, 0x00, 0xbb, 0x03, 0x8c, 0x00, 0xbd, 0x03, 0x8e, 0x03, 0x8f,
|
|
||||||
0x03, 0x90, 0x03, 0x91, 0x03, 0x92, 0x03, 0x93, 0x03, 0x94, 0x03, 0x95,
|
|
||||||
0x03, 0x96, 0x03, 0x97, 0x03, 0x98, 0x03, 0x99, 0x03, 0x9a, 0x03, 0x9b,
|
|
||||||
0x03, 0x9c, 0x03, 0x9d, 0x03, 0x9e, 0x03, 0x9f, 0x03, 0xa0, 0x03, 0xa1,
|
|
||||||
0xff, 0xff, 0x03, 0xa3, 0x03, 0xa4, 0x03, 0xa5, 0x03, 0xa6, 0x03, 0xa7,
|
|
||||||
0x03, 0xa8, 0x03, 0xa9, 0x03, 0xaa, 0x03, 0xab, 0x03, 0xac, 0x03, 0xad,
|
|
||||||
0x03, 0xae, 0x03, 0xaf, 0x03, 0xb0, 0x03, 0xb1, 0x03, 0xb2, 0x03, 0xb3,
|
|
||||||
0x03, 0xb4, 0x03, 0xb5, 0x03, 0xb6, 0x03, 0xb7, 0x03, 0xb8, 0x03, 0xb9,
|
|
||||||
0x03, 0xba, 0x03, 0xbb, 0x03, 0xbc, 0x03, 0xbd, 0x03, 0xbe, 0x03, 0xbf,
|
|
||||||
0x03, 0xc0, 0x03, 0xc1, 0x03, 0xc2, 0x03, 0xc3, 0x03, 0xc4, 0x03, 0xc5,
|
|
||||||
0x03, 0xc6, 0x03, 0xc7, 0x03, 0xc8, 0x03, 0xc9, 0x03, 0xca, 0x03, 0xcb,
|
|
||||||
0x03, 0xcc, 0x03, 0xcd, 0x03, 0xce, 0xff, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_8[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0xff, 0xff,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x00, 0xd7, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x00, 0xf7, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x17, 0x05, 0xd0, 0x05, 0xd1, 0x05, 0xd2, 0x05, 0xd3,
|
|
||||||
0x05, 0xd4, 0x05, 0xd5, 0x05, 0xd6, 0x05, 0xd7, 0x05, 0xd8, 0x05, 0xd9,
|
|
||||||
0x05, 0xda, 0x05, 0xdb, 0x05, 0xdc, 0x05, 0xdd, 0x05, 0xde, 0x05, 0xdf,
|
|
||||||
0x05, 0xe0, 0x05, 0xe1, 0x05, 0xe2, 0x05, 0xe3, 0x05, 0xe4, 0x05, 0xe5,
|
|
||||||
0x05, 0xe6, 0x05, 0xe7, 0x05, 0xe8, 0x05, 0xe9, 0x05, 0xea, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x0e, 0x20, 0x0f, 0xff, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_iso_8859_9[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x81, 0x00, 0x82, 0x00, 0x83,
|
|
||||||
0x00, 0x84, 0x00, 0x85, 0x00, 0x86, 0x00, 0x87, 0x00, 0x88, 0x00, 0x89,
|
|
||||||
0x00, 0x8a, 0x00, 0x8b, 0x00, 0x8c, 0x00, 0x8d, 0x00, 0x8e, 0x00, 0x8f,
|
|
||||||
0x00, 0x90, 0x00, 0x91, 0x00, 0x92, 0x00, 0x93, 0x00, 0x94, 0x00, 0x95,
|
|
||||||
0x00, 0x96, 0x00, 0x97, 0x00, 0x98, 0x00, 0x99, 0x00, 0x9a, 0x00, 0x9b,
|
|
||||||
0x00, 0x9c, 0x00, 0x9d, 0x00, 0x9e, 0x00, 0x9f, 0x00, 0xa0, 0x00, 0xa1,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x00, 0xaa, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x00, 0xba, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xbf,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0x00, 0xc3, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x00, 0xcc, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x01, 0x1e, 0x00, 0xd1,
|
|
||||||
0x00, 0xd2, 0x00, 0xd3, 0x00, 0xd4, 0x00, 0xd5, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x00, 0xd8, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x01, 0x30,
|
|
||||||
0x01, 0x5e, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0x00, 0xe3,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x00, 0xec, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x01, 0x1f, 0x00, 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x00, 0xf8, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x01, 0x31, 0x01, 0x5f, 0x00, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_koi8_r[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x25, 0x00, 0x25, 0x02, 0x25, 0x0c, 0x25, 0x10,
|
|
||||||
0x25, 0x14, 0x25, 0x18, 0x25, 0x1c, 0x25, 0x24, 0x25, 0x2c, 0x25, 0x34,
|
|
||||||
0x25, 0x3c, 0x25, 0x80, 0x25, 0x84, 0x25, 0x88, 0x25, 0x8c, 0x25, 0x90,
|
|
||||||
0x25, 0x91, 0x25, 0x92, 0x25, 0x93, 0x23, 0x20, 0x25, 0xa0, 0x22, 0x19,
|
|
||||||
0x22, 0x1a, 0x22, 0x48, 0x22, 0x64, 0x22, 0x65, 0x00, 0xa0, 0x23, 0x21,
|
|
||||||
0x00, 0xb0, 0x00, 0xb2, 0x00, 0xb7, 0x00, 0xf7, 0x25, 0x50, 0x25, 0x51,
|
|
||||||
0x25, 0x52, 0x04, 0x51, 0x25, 0x53, 0x25, 0x54, 0x25, 0x55, 0x25, 0x56,
|
|
||||||
0x25, 0x57, 0x25, 0x58, 0x25, 0x59, 0x25, 0x5a, 0x25, 0x5b, 0x25, 0x5c,
|
|
||||||
0x25, 0x5d, 0x25, 0x5e, 0x25, 0x5f, 0x25, 0x60, 0x25, 0x61, 0x04, 0x01,
|
|
||||||
0x25, 0x62, 0x25, 0x63, 0x25, 0x64, 0x25, 0x65, 0x25, 0x66, 0x25, 0x67,
|
|
||||||
0x25, 0x68, 0x25, 0x69, 0x25, 0x6a, 0x25, 0x6b, 0x25, 0x6c, 0x00, 0xa9,
|
|
||||||
0x04, 0x4e, 0x04, 0x30, 0x04, 0x31, 0x04, 0x46, 0x04, 0x34, 0x04, 0x35,
|
|
||||||
0x04, 0x44, 0x04, 0x33, 0x04, 0x45, 0x04, 0x38, 0x04, 0x39, 0x04, 0x3a,
|
|
||||||
0x04, 0x3b, 0x04, 0x3c, 0x04, 0x3d, 0x04, 0x3e, 0x04, 0x3f, 0x04, 0x4f,
|
|
||||||
0x04, 0x40, 0x04, 0x41, 0x04, 0x42, 0x04, 0x43, 0x04, 0x36, 0x04, 0x32,
|
|
||||||
0x04, 0x4c, 0x04, 0x4b, 0x04, 0x37, 0x04, 0x48, 0x04, 0x4d, 0x04, 0x49,
|
|
||||||
0x04, 0x47, 0x04, 0x4a, 0x04, 0x2e, 0x04, 0x10, 0x04, 0x11, 0x04, 0x26,
|
|
||||||
0x04, 0x14, 0x04, 0x15, 0x04, 0x24, 0x04, 0x13, 0x04, 0x25, 0x04, 0x18,
|
|
||||||
0x04, 0x19, 0x04, 0x1a, 0x04, 0x1b, 0x04, 0x1c, 0x04, 0x1d, 0x04, 0x1e,
|
|
||||||
0x04, 0x1f, 0x04, 0x2f, 0x04, 0x20, 0x04, 0x21, 0x04, 0x22, 0x04, 0x23,
|
|
||||||
0x04, 0x16, 0x04, 0x12, 0x04, 0x2c, 0x04, 0x2b, 0x04, 0x17, 0x04, 0x28,
|
|
||||||
0x04, 0x2d, 0x04, 0x29, 0x04, 0x27, 0x04, 0x2a
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1250[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0xff, 0xff,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0xff, 0xff, 0x20, 0x30,
|
|
||||||
0x01, 0x60, 0x20, 0x39, 0x01, 0x5a, 0x01, 0x64, 0x01, 0x7d, 0x01, 0x79,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0xff, 0xff, 0x21, 0x22, 0x01, 0x61, 0x20, 0x3a,
|
|
||||||
0x01, 0x5b, 0x01, 0x65, 0x01, 0x7e, 0x01, 0x7a, 0x00, 0xa0, 0x02, 0xc7,
|
|
||||||
0x02, 0xd8, 0x01, 0x41, 0x00, 0xa4, 0x01, 0x04, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x01, 0x5e, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x01, 0x7b, 0x00, 0xb0, 0x00, 0xb1, 0x02, 0xdb, 0x01, 0x42,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x01, 0x05,
|
|
||||||
0x01, 0x5f, 0x00, 0xbb, 0x01, 0x3d, 0x02, 0xdd, 0x01, 0x3e, 0x01, 0x7c,
|
|
||||||
0x01, 0x54, 0x00, 0xc1, 0x00, 0xc2, 0x01, 0x02, 0x00, 0xc4, 0x01, 0x39,
|
|
||||||
0x01, 0x06, 0x00, 0xc7, 0x01, 0x0c, 0x00, 0xc9, 0x01, 0x18, 0x00, 0xcb,
|
|
||||||
0x01, 0x1a, 0x00, 0xcd, 0x00, 0xce, 0x01, 0x0e, 0x01, 0x10, 0x01, 0x43,
|
|
||||||
0x01, 0x47, 0x00, 0xd3, 0x00, 0xd4, 0x01, 0x50, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x01, 0x58, 0x01, 0x6e, 0x00, 0xda, 0x01, 0x70, 0x00, 0xdc, 0x00, 0xdd,
|
|
||||||
0x01, 0x62, 0x00, 0xdf, 0x01, 0x55, 0x00, 0xe1, 0x00, 0xe2, 0x01, 0x03,
|
|
||||||
0x00, 0xe4, 0x01, 0x3a, 0x01, 0x07, 0x00, 0xe7, 0x01, 0x0d, 0x00, 0xe9,
|
|
||||||
0x01, 0x19, 0x00, 0xeb, 0x01, 0x1b, 0x00, 0xed, 0x00, 0xee, 0x01, 0x0f,
|
|
||||||
0x01, 0x11, 0x01, 0x44, 0x01, 0x48, 0x00, 0xf3, 0x00, 0xf4, 0x01, 0x51,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x01, 0x59, 0x01, 0x6f, 0x00, 0xfa, 0x01, 0x71,
|
|
||||||
0x00, 0xfc, 0x00, 0xfd, 0x01, 0x63, 0x02, 0xd9
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1251[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x04, 0x02, 0x04, 0x03, 0x20, 0x1a, 0x04, 0x53,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0x20, 0xac, 0x20, 0x30,
|
|
||||||
0x04, 0x09, 0x20, 0x39, 0x04, 0x0a, 0x04, 0x0c, 0x04, 0x0b, 0x04, 0x0f,
|
|
||||||
0x04, 0x52, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0xff, 0xff, 0x21, 0x22, 0x04, 0x59, 0x20, 0x3a,
|
|
||||||
0x04, 0x5a, 0x04, 0x5c, 0x04, 0x5b, 0x04, 0x5f, 0x00, 0xa0, 0x04, 0x0e,
|
|
||||||
0x04, 0x5e, 0x04, 0x08, 0x00, 0xa4, 0x04, 0x90, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x04, 0x01, 0x00, 0xa9, 0x04, 0x04, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x04, 0x07, 0x00, 0xb0, 0x00, 0xb1, 0x04, 0x06, 0x04, 0x56,
|
|
||||||
0x04, 0x91, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x04, 0x51, 0x21, 0x16,
|
|
||||||
0x04, 0x54, 0x00, 0xbb, 0x04, 0x58, 0x04, 0x05, 0x04, 0x55, 0x04, 0x57,
|
|
||||||
0x04, 0x10, 0x04, 0x11, 0x04, 0x12, 0x04, 0x13, 0x04, 0x14, 0x04, 0x15,
|
|
||||||
0x04, 0x16, 0x04, 0x17, 0x04, 0x18, 0x04, 0x19, 0x04, 0x1a, 0x04, 0x1b,
|
|
||||||
0x04, 0x1c, 0x04, 0x1d, 0x04, 0x1e, 0x04, 0x1f, 0x04, 0x20, 0x04, 0x21,
|
|
||||||
0x04, 0x22, 0x04, 0x23, 0x04, 0x24, 0x04, 0x25, 0x04, 0x26, 0x04, 0x27,
|
|
||||||
0x04, 0x28, 0x04, 0x29, 0x04, 0x2a, 0x04, 0x2b, 0x04, 0x2c, 0x04, 0x2d,
|
|
||||||
0x04, 0x2e, 0x04, 0x2f, 0x04, 0x30, 0x04, 0x31, 0x04, 0x32, 0x04, 0x33,
|
|
||||||
0x04, 0x34, 0x04, 0x35, 0x04, 0x36, 0x04, 0x37, 0x04, 0x38, 0x04, 0x39,
|
|
||||||
0x04, 0x3a, 0x04, 0x3b, 0x04, 0x3c, 0x04, 0x3d, 0x04, 0x3e, 0x04, 0x3f,
|
|
||||||
0x04, 0x40, 0x04, 0x41, 0x04, 0x42, 0x04, 0x43, 0x04, 0x44, 0x04, 0x45,
|
|
||||||
0x04, 0x46, 0x04, 0x47, 0x04, 0x48, 0x04, 0x49, 0x04, 0x4a, 0x04, 0x4b,
|
|
||||||
0x04, 0x4c, 0x04, 0x4d, 0x04, 0x4e, 0x04, 0x4f
|
|
||||||
};
|
|
@ -1,25 +0,0 @@
|
|||||||
static const unsigned char map_windows_1252[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0x01, 0x92,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0x02, 0xc6, 0x20, 0x30,
|
|
||||||
0x01, 0x60, 0x20, 0x39, 0x01, 0x52, 0xff, 0xff, 0x01, 0x7d, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0x02, 0xdc, 0x21, 0x22, 0x01, 0x61, 0x20, 0x3a,
|
|
||||||
0x01, 0x53, 0xff, 0xff, 0x01, 0x7e, 0x01, 0x78, 0x00, 0xa0, 0x00, 0xa1,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x00, 0xaa, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x00, 0xba, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xbf,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0x00, 0xc3, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x00, 0xcc, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x00, 0xd0, 0x00, 0xd1,
|
|
||||||
0x00, 0xd2, 0x00, 0xd3, 0x00, 0xd4, 0x00, 0xd5, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x00, 0xd8, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x00, 0xdd,
|
|
||||||
0x00, 0xde, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0x00, 0xe3,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x00, 0xec, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x00, 0xf0, 0x00, 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x00, 0xf8, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x00, 0xfd, 0x00, 0xfe, 0x00, 0xff
|
|
||||||
};
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1253[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0x01, 0x92,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0xff, 0xff, 0x20, 0x30,
|
|
||||||
0xff, 0xff, 0x20, 0x39, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0xff, 0xff, 0x21, 0x22, 0xff, 0xff, 0x20, 0x3a,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xa0, 0x03, 0x85,
|
|
||||||
0x03, 0x86, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0xff, 0xff, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x20, 0x15, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x03, 0x84, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x03, 0x88, 0x03, 0x89,
|
|
||||||
0x03, 0x8a, 0x00, 0xbb, 0x03, 0x8c, 0x00, 0xbd, 0x03, 0x8e, 0x03, 0x8f,
|
|
||||||
0x03, 0x90, 0x03, 0x91, 0x03, 0x92, 0x03, 0x93, 0x03, 0x94, 0x03, 0x95,
|
|
||||||
0x03, 0x96, 0x03, 0x97, 0x03, 0x98, 0x03, 0x99, 0x03, 0x9a, 0x03, 0x9b,
|
|
||||||
0x03, 0x9c, 0x03, 0x9d, 0x03, 0x9e, 0x03, 0x9f, 0x03, 0xa0, 0x03, 0xa1,
|
|
||||||
0xff, 0xff, 0x03, 0xa3, 0x03, 0xa4, 0x03, 0xa5, 0x03, 0xa6, 0x03, 0xa7,
|
|
||||||
0x03, 0xa8, 0x03, 0xa9, 0x03, 0xaa, 0x03, 0xab, 0x03, 0xac, 0x03, 0xad,
|
|
||||||
0x03, 0xae, 0x03, 0xaf, 0x03, 0xb0, 0x03, 0xb1, 0x03, 0xb2, 0x03, 0xb3,
|
|
||||||
0x03, 0xb4, 0x03, 0xb5, 0x03, 0xb6, 0x03, 0xb7, 0x03, 0xb8, 0x03, 0xb9,
|
|
||||||
0x03, 0xba, 0x03, 0xbb, 0x03, 0xbc, 0x03, 0xbd, 0x03, 0xbe, 0x03, 0xbf,
|
|
||||||
0x03, 0xc0, 0x03, 0xc1, 0x03, 0xc2, 0x03, 0xc3, 0x03, 0xc4, 0x03, 0xc5,
|
|
||||||
0x03, 0xc6, 0x03, 0xc7, 0x03, 0xc8, 0x03, 0xc9, 0x03, 0xca, 0x03, 0xcb,
|
|
||||||
0x03, 0xcc, 0x03, 0xcd, 0x03, 0xce, 0xff, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1254[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0x01, 0x92,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0x02, 0xc6, 0x20, 0x30,
|
|
||||||
0x01, 0x60, 0x20, 0x39, 0x01, 0x52, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0x02, 0xdc, 0x21, 0x22, 0x01, 0x61, 0x20, 0x3a,
|
|
||||||
0x01, 0x53, 0xff, 0xff, 0xff, 0xff, 0x01, 0x78, 0x00, 0xa0, 0x00, 0xa1,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x00, 0xaa, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x00, 0xba, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xbf,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0x00, 0xc3, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x00, 0xcc, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x01, 0x1e, 0x00, 0xd1,
|
|
||||||
0x00, 0xd2, 0x00, 0xd3, 0x00, 0xd4, 0x00, 0xd5, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x00, 0xd8, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x01, 0x30,
|
|
||||||
0x01, 0x5e, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0x00, 0xe3,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x00, 0xec, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x01, 0x1f, 0x00, 0xf1, 0x00, 0xf2, 0x00, 0xf3, 0x00, 0xf4, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x00, 0xf8, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x01, 0x31, 0x01, 0x5f, 0x00, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1255[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0x01, 0x92,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0x02, 0xc6, 0x20, 0x30,
|
|
||||||
0xff, 0xff, 0x20, 0x39, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0x02, 0xdc, 0x21, 0x22, 0xff, 0xff, 0x20, 0x3a,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xa0, 0x00, 0xa1,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x20, 0xaa, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x00, 0xd7, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x00, 0xf7, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xbf,
|
|
||||||
0x05, 0xb0, 0x05, 0xb1, 0x05, 0xb2, 0x05, 0xb3, 0x05, 0xb4, 0x05, 0xb5,
|
|
||||||
0x05, 0xb6, 0x05, 0xb7, 0x05, 0xb8, 0x05, 0xb9, 0xff, 0xff, 0x05, 0xbb,
|
|
||||||
0x05, 0xbc, 0x05, 0xbd, 0x05, 0xbe, 0x05, 0xbf, 0x05, 0xc0, 0x05, 0xc1,
|
|
||||||
0x05, 0xc2, 0x05, 0xc3, 0x05, 0xf0, 0x05, 0xf1, 0x05, 0xf2, 0x05, 0xf3,
|
|
||||||
0x05, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0x05, 0xd0, 0x05, 0xd1, 0x05, 0xd2, 0x05, 0xd3,
|
|
||||||
0x05, 0xd4, 0x05, 0xd5, 0x05, 0xd6, 0x05, 0xd7, 0x05, 0xd8, 0x05, 0xd9,
|
|
||||||
0x05, 0xda, 0x05, 0xdb, 0x05, 0xdc, 0x05, 0xdd, 0x05, 0xde, 0x05, 0xdf,
|
|
||||||
0x05, 0xe0, 0x05, 0xe1, 0x05, 0xe2, 0x05, 0xe3, 0x05, 0xe4, 0x05, 0xe5,
|
|
||||||
0x05, 0xe6, 0x05, 0xe7, 0x05, 0xe8, 0x05, 0xe9, 0x05, 0xea, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x0e, 0x20, 0x0f, 0xff, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1256[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0x06, 0x7e, 0x20, 0x1a, 0x01, 0x92,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0x02, 0xc6, 0x20, 0x30,
|
|
||||||
0x06, 0x79, 0x20, 0x39, 0x01, 0x52, 0x06, 0x86, 0x06, 0x98, 0x06, 0x88,
|
|
||||||
0x06, 0xaf, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0x06, 0xa9, 0x21, 0x22, 0x06, 0x91, 0x20, 0x3a,
|
|
||||||
0x01, 0x53, 0x20, 0x0c, 0x20, 0x0d, 0x06, 0xba, 0x00, 0xa0, 0x06, 0x0c,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x06, 0xbe, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x06, 0x1b, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x06, 0x1f,
|
|
||||||
0x06, 0xc1, 0x06, 0x21, 0x06, 0x22, 0x06, 0x23, 0x06, 0x24, 0x06, 0x25,
|
|
||||||
0x06, 0x26, 0x06, 0x27, 0x06, 0x28, 0x06, 0x29, 0x06, 0x2a, 0x06, 0x2b,
|
|
||||||
0x06, 0x2c, 0x06, 0x2d, 0x06, 0x2e, 0x06, 0x2f, 0x06, 0x30, 0x06, 0x31,
|
|
||||||
0x06, 0x32, 0x06, 0x33, 0x06, 0x34, 0x06, 0x35, 0x06, 0x36, 0x00, 0xd7,
|
|
||||||
0x06, 0x37, 0x06, 0x38, 0x06, 0x39, 0x06, 0x3a, 0x06, 0x40, 0x06, 0x41,
|
|
||||||
0x06, 0x42, 0x06, 0x43, 0x00, 0xe0, 0x06, 0x44, 0x00, 0xe2, 0x06, 0x45,
|
|
||||||
0x06, 0x46, 0x06, 0x47, 0x06, 0x48, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x06, 0x49, 0x06, 0x4a, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x06, 0x4b, 0x06, 0x4c, 0x06, 0x4d, 0x06, 0x4e, 0x00, 0xf4, 0x06, 0x4f,
|
|
||||||
0x06, 0x50, 0x00, 0xf7, 0x06, 0x51, 0x00, 0xf9, 0x06, 0x52, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x20, 0x0e, 0x20, 0x0f, 0x06, 0xd2
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1257[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0xff, 0xff,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0xff, 0xff, 0x20, 0x30,
|
|
||||||
0xff, 0xff, 0x20, 0x39, 0xff, 0xff, 0x00, 0xa8, 0x02, 0xc7, 0x00, 0xb8,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0xff, 0xff, 0x21, 0x22, 0xff, 0xff, 0x20, 0x3a,
|
|
||||||
0xff, 0xff, 0x00, 0xaf, 0x02, 0xdb, 0xff, 0xff, 0x00, 0xa0, 0xff, 0xff,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0xff, 0xff, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xd8, 0x00, 0xa9, 0x01, 0x56, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xc6, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xf8, 0x00, 0xb9,
|
|
||||||
0x01, 0x57, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xe6,
|
|
||||||
0x01, 0x04, 0x01, 0x2e, 0x01, 0x00, 0x01, 0x06, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x01, 0x18, 0x01, 0x12, 0x01, 0x0c, 0x00, 0xc9, 0x01, 0x79, 0x01, 0x16,
|
|
||||||
0x01, 0x22, 0x01, 0x36, 0x01, 0x2a, 0x01, 0x3b, 0x01, 0x60, 0x01, 0x43,
|
|
||||||
0x01, 0x45, 0x00, 0xd3, 0x01, 0x4c, 0x00, 0xd5, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x01, 0x72, 0x01, 0x41, 0x01, 0x5a, 0x01, 0x6a, 0x00, 0xdc, 0x01, 0x7b,
|
|
||||||
0x01, 0x7d, 0x00, 0xdf, 0x01, 0x05, 0x01, 0x2f, 0x01, 0x01, 0x01, 0x07,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x01, 0x19, 0x01, 0x13, 0x01, 0x0d, 0x00, 0xe9,
|
|
||||||
0x01, 0x7a, 0x01, 0x17, 0x01, 0x23, 0x01, 0x37, 0x01, 0x2b, 0x01, 0x3c,
|
|
||||||
0x01, 0x61, 0x01, 0x44, 0x01, 0x46, 0x00, 0xf3, 0x01, 0x4d, 0x00, 0xf5,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x01, 0x73, 0x01, 0x42, 0x01, 0x5b, 0x01, 0x6b,
|
|
||||||
0x00, 0xfc, 0x01, 0x7c, 0x01, 0x7e, 0x02, 0xd9
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_1258[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0x20, 0x1a, 0x01, 0x92,
|
|
||||||
0x20, 0x1e, 0x20, 0x26, 0x20, 0x20, 0x20, 0x21, 0x02, 0xc6, 0x20, 0x30,
|
|
||||||
0xff, 0xff, 0x20, 0x39, 0x01, 0x52, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0x02, 0xdc, 0x21, 0x22, 0xff, 0xff, 0x20, 0x3a,
|
|
||||||
0x01, 0x53, 0xff, 0xff, 0xff, 0xff, 0x01, 0x78, 0x00, 0xa0, 0x00, 0xa1,
|
|
||||||
0x00, 0xa2, 0x00, 0xa3, 0x00, 0xa4, 0x00, 0xa5, 0x00, 0xa6, 0x00, 0xa7,
|
|
||||||
0x00, 0xa8, 0x00, 0xa9, 0x00, 0xaa, 0x00, 0xab, 0x00, 0xac, 0x00, 0xad,
|
|
||||||
0x00, 0xae, 0x00, 0xaf, 0x00, 0xb0, 0x00, 0xb1, 0x00, 0xb2, 0x00, 0xb3,
|
|
||||||
0x00, 0xb4, 0x00, 0xb5, 0x00, 0xb6, 0x00, 0xb7, 0x00, 0xb8, 0x00, 0xb9,
|
|
||||||
0x00, 0xba, 0x00, 0xbb, 0x00, 0xbc, 0x00, 0xbd, 0x00, 0xbe, 0x00, 0xbf,
|
|
||||||
0x00, 0xc0, 0x00, 0xc1, 0x00, 0xc2, 0x01, 0x02, 0x00, 0xc4, 0x00, 0xc5,
|
|
||||||
0x00, 0xc6, 0x00, 0xc7, 0x00, 0xc8, 0x00, 0xc9, 0x00, 0xca, 0x00, 0xcb,
|
|
||||||
0x03, 0x00, 0x00, 0xcd, 0x00, 0xce, 0x00, 0xcf, 0x01, 0x10, 0x00, 0xd1,
|
|
||||||
0x03, 0x09, 0x00, 0xd3, 0x00, 0xd4, 0x01, 0xa0, 0x00, 0xd6, 0x00, 0xd7,
|
|
||||||
0x00, 0xd8, 0x00, 0xd9, 0x00, 0xda, 0x00, 0xdb, 0x00, 0xdc, 0x01, 0xaf,
|
|
||||||
0x03, 0x03, 0x00, 0xdf, 0x00, 0xe0, 0x00, 0xe1, 0x00, 0xe2, 0x01, 0x03,
|
|
||||||
0x00, 0xe4, 0x00, 0xe5, 0x00, 0xe6, 0x00, 0xe7, 0x00, 0xe8, 0x00, 0xe9,
|
|
||||||
0x00, 0xea, 0x00, 0xeb, 0x03, 0x01, 0x00, 0xed, 0x00, 0xee, 0x00, 0xef,
|
|
||||||
0x01, 0x11, 0x00, 0xf1, 0x03, 0x23, 0x00, 0xf3, 0x00, 0xf4, 0x01, 0xa1,
|
|
||||||
0x00, 0xf6, 0x00, 0xf7, 0x00, 0xf8, 0x00, 0xf9, 0x00, 0xfa, 0x00, 0xfb,
|
|
||||||
0x00, 0xfc, 0x01, 0xb0, 0x20, 0xab, 0x00, 0xff
|
|
||||||
};
|
|
@ -1,24 +0,0 @@
|
|||||||
static const unsigned char map_windows_874[] = {
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x20, 0xac, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x26, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x20, 0x18, 0x20, 0x19, 0x20, 0x1c, 0x20, 0x1d, 0x20, 0x22,
|
|
||||||
0x20, 0x13, 0x20, 0x14, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0xa0, 0x0e, 0x01,
|
|
||||||
0x0e, 0x02, 0x0e, 0x03, 0x0e, 0x04, 0x0e, 0x05, 0x0e, 0x06, 0x0e, 0x07,
|
|
||||||
0x0e, 0x08, 0x0e, 0x09, 0x0e, 0x0a, 0x0e, 0x0b, 0x0e, 0x0c, 0x0e, 0x0d,
|
|
||||||
0x0e, 0x0e, 0x0e, 0x0f, 0x0e, 0x10, 0x0e, 0x11, 0x0e, 0x12, 0x0e, 0x13,
|
|
||||||
0x0e, 0x14, 0x0e, 0x15, 0x0e, 0x16, 0x0e, 0x17, 0x0e, 0x18, 0x0e, 0x19,
|
|
||||||
0x0e, 0x1a, 0x0e, 0x1b, 0x0e, 0x1c, 0x0e, 0x1d, 0x0e, 0x1e, 0x0e, 0x1f,
|
|
||||||
0x0e, 0x20, 0x0e, 0x21, 0x0e, 0x22, 0x0e, 0x23, 0x0e, 0x24, 0x0e, 0x25,
|
|
||||||
0x0e, 0x26, 0x0e, 0x27, 0x0e, 0x28, 0x0e, 0x29, 0x0e, 0x2a, 0x0e, 0x2b,
|
|
||||||
0x0e, 0x2c, 0x0e, 0x2d, 0x0e, 0x2e, 0x0e, 0x2f, 0x0e, 0x30, 0x0e, 0x31,
|
|
||||||
0x0e, 0x32, 0x0e, 0x33, 0x0e, 0x34, 0x0e, 0x35, 0x0e, 0x36, 0x0e, 0x37,
|
|
||||||
0x0e, 0x38, 0x0e, 0x39, 0x0e, 0x3a, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
||||||
0xff, 0xff, 0x0e, 0x3f, 0x0e, 0x40, 0x0e, 0x41, 0x0e, 0x42, 0x0e, 0x43,
|
|
||||||
0x0e, 0x44, 0x0e, 0x45, 0x0e, 0x46, 0x0e, 0x47, 0x0e, 0x48, 0x0e, 0x49,
|
|
||||||
0x0e, 0x4a, 0x0e, 0x4b, 0x0e, 0x4c, 0x0e, 0x4d, 0x0e, 0x4e, 0x0e, 0x4f,
|
|
||||||
0x0e, 0x50, 0x0e, 0x51, 0x0e, 0x52, 0x0e, 0x53, 0x0e, 0x54, 0x0e, 0x55,
|
|
||||||
0x0e, 0x56, 0x0e, 0x57, 0x0e, 0x58, 0x0e, 0x59, 0x0e, 0x5a, 0x0e, 0x5b,
|
|
||||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
|
||||||
};
|
|
@ -1,36 +0,0 @@
|
|||||||
#ifndef _LIBICONV_H
|
|
||||||
#define _LIBICONV_H 1
|
|
||||||
|
|
||||||
#define _LIBICONV_VERSION 0x010B /* version number: (major<<8) + minor */
|
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern int _libiconv_version; /* Likewise */
|
|
||||||
|
|
||||||
typedef long iconv_t;
|
|
||||||
|
|
||||||
#define iconv_open libiconv_open
|
|
||||||
#define iconv libiconv
|
|
||||||
#define iconv_close libiconv_close
|
|
||||||
|
|
||||||
extern iconv_t
|
|
||||||
iconv_open(const char *tocode, const char *fromcode);
|
|
||||||
|
|
||||||
extern size_t
|
|
||||||
iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
|
|
||||||
char **outbuf, size_t *outbytesleft);
|
|
||||||
|
|
||||||
extern int
|
|
||||||
iconv_close(iconv_t cd);
|
|
||||||
|
|
||||||
#define libiconv_set_relocation_prefix(...) do {} while(0)
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _LIBICONV_H */
|
|
@ -1,214 +0,0 @@
|
|||||||
# iconv.m4 serial 11 (gettext-0.18.1)
|
|
||||||
dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc.
|
|
||||||
dnl This file is free software; the Free Software Foundation
|
|
||||||
dnl gives unlimited permission to copy and/or distribute it,
|
|
||||||
dnl with or without modifications, as long as this notice is preserved.
|
|
||||||
|
|
||||||
dnl From Bruno Haible.
|
|
||||||
|
|
||||||
AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
|
|
||||||
[
|
|
||||||
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
|
|
||||||
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
|
|
||||||
AC_REQUIRE([AC_LIB_RPATH])
|
|
||||||
|
|
||||||
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
|
||||||
dnl accordingly.
|
|
||||||
AC_LIB_LINKFLAGS_BODY([iconv])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([AM_ICONV_LINK],
|
|
||||||
[
|
|
||||||
dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
|
|
||||||
dnl those with the standalone portable GNU libiconv installed).
|
|
||||||
AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
|
|
||||||
|
|
||||||
dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
|
|
||||||
dnl accordingly.
|
|
||||||
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
|
|
||||||
|
|
||||||
dnl Add $INCICONV to CPPFLAGS before performing the following checks,
|
|
||||||
dnl because if the user has installed libiconv and not disabled its use
|
|
||||||
dnl via --without-libiconv-prefix, he wants to use it. The first
|
|
||||||
dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
|
|
||||||
am_save_CPPFLAGS="$CPPFLAGS"
|
|
||||||
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
|
|
||||||
|
|
||||||
AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [
|
|
||||||
am_cv_func_iconv="no, consider installing GNU libiconv"
|
|
||||||
am_cv_lib_iconv=no
|
|
||||||
AC_TRY_LINK([#include <stdlib.h>
|
|
||||||
#include <iconv.h>],
|
|
||||||
[iconv_t cd = iconv_open("","");
|
|
||||||
iconv(cd,NULL,NULL,NULL,NULL);
|
|
||||||
iconv_close(cd);],
|
|
||||||
[am_cv_func_iconv=yes])
|
|
||||||
if test "$am_cv_func_iconv" != yes; then
|
|
||||||
am_save_LIBS="$LIBS"
|
|
||||||
LIBS="$LIBS $LIBICONV"
|
|
||||||
AC_TRY_LINK([#include <stdlib.h>
|
|
||||||
#include <iconv.h>],
|
|
||||||
[iconv_t cd = iconv_open("","");
|
|
||||||
iconv(cd,NULL,NULL,NULL,NULL);
|
|
||||||
iconv_close(cd);],
|
|
||||||
[am_cv_lib_iconv=yes]
|
|
||||||
[am_cv_func_iconv=yes])
|
|
||||||
LIBS="$am_save_LIBS"
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
if test "$am_cv_func_iconv" = yes; then
|
|
||||||
AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [
|
|
||||||
dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10.
|
|
||||||
am_save_LIBS="$LIBS"
|
|
||||||
if test $am_cv_lib_iconv = yes; then
|
|
||||||
LIBS="$LIBS $LIBICONV"
|
|
||||||
fi
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <iconv.h>
|
|
||||||
#include <string.h>
|
|
||||||
int main ()
|
|
||||||
{
|
|
||||||
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
|
|
||||||
returns. */
|
|
||||||
{
|
|
||||||
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
|
|
||||||
if (cd_utf8_to_88591 != (iconv_t)(-1))
|
|
||||||
{
|
|
||||||
static const char input[] = "\342\202\254"; /* EURO SIGN */
|
|
||||||
char buf[10];
|
|
||||||
const char *inptr = input;
|
|
||||||
size_t inbytesleft = strlen (input);
|
|
||||||
char *outptr = buf;
|
|
||||||
size_t outbytesleft = sizeof (buf);
|
|
||||||
size_t res = iconv (cd_utf8_to_88591,
|
|
||||||
(char **) &inptr, &inbytesleft,
|
|
||||||
&outptr, &outbytesleft);
|
|
||||||
if (res == 0)
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* Test against Solaris 10 bug: Failures are not distinguishable from
|
|
||||||
successful returns. */
|
|
||||||
{
|
|
||||||
iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
|
|
||||||
if (cd_ascii_to_88591 != (iconv_t)(-1))
|
|
||||||
{
|
|
||||||
static const char input[] = "\263";
|
|
||||||
char buf[10];
|
|
||||||
const char *inptr = input;
|
|
||||||
size_t inbytesleft = strlen (input);
|
|
||||||
char *outptr = buf;
|
|
||||||
size_t outbytesleft = sizeof (buf);
|
|
||||||
size_t res = iconv (cd_ascii_to_88591,
|
|
||||||
(char **) &inptr, &inbytesleft,
|
|
||||||
&outptr, &outbytesleft);
|
|
||||||
if (res == 0)
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#if 0 /* This bug could be worked around by the caller. */
|
|
||||||
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
|
|
||||||
{
|
|
||||||
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
|
|
||||||
if (cd_88591_to_utf8 != (iconv_t)(-1))
|
|
||||||
{
|
|
||||||
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
|
|
||||||
char buf[50];
|
|
||||||
const char *inptr = input;
|
|
||||||
size_t inbytesleft = strlen (input);
|
|
||||||
char *outptr = buf;
|
|
||||||
size_t outbytesleft = sizeof (buf);
|
|
||||||
size_t res = iconv (cd_88591_to_utf8,
|
|
||||||
(char **) &inptr, &inbytesleft,
|
|
||||||
&outptr, &outbytesleft);
|
|
||||||
if ((int)res > 0)
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
|
|
||||||
provided. */
|
|
||||||
if (/* Try standardized names. */
|
|
||||||
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
|
|
||||||
/* Try IRIX, OSF/1 names. */
|
|
||||||
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
|
|
||||||
/* Try AIX names. */
|
|
||||||
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
|
|
||||||
/* Try HP-UX names. */
|
|
||||||
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
|
|
||||||
return 1;
|
|
||||||
return 0;
|
|
||||||
}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no],
|
|
||||||
[case "$host_os" in
|
|
||||||
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
|
|
||||||
*) am_cv_func_iconv_works="guessing yes" ;;
|
|
||||||
esac])
|
|
||||||
LIBS="$am_save_LIBS"
|
|
||||||
])
|
|
||||||
case "$am_cv_func_iconv_works" in
|
|
||||||
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
|
|
||||||
*) am_func_iconv=yes ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
am_func_iconv=no am_cv_lib_iconv=no
|
|
||||||
fi
|
|
||||||
if test "$am_func_iconv" = yes; then
|
|
||||||
AC_DEFINE([HAVE_ICONV], [1],
|
|
||||||
[Define if you have the iconv() function and it works.])
|
|
||||||
fi
|
|
||||||
if test "$am_cv_lib_iconv" = yes; then
|
|
||||||
AC_MSG_CHECKING([how to link with libiconv])
|
|
||||||
AC_MSG_RESULT([$LIBICONV])
|
|
||||||
else
|
|
||||||
dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
|
|
||||||
dnl either.
|
|
||||||
CPPFLAGS="$am_save_CPPFLAGS"
|
|
||||||
LIBICONV=
|
|
||||||
LTLIBICONV=
|
|
||||||
fi
|
|
||||||
AC_SUBST([LIBICONV])
|
|
||||||
AC_SUBST([LTLIBICONV])
|
|
||||||
])
|
|
||||||
|
|
||||||
dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to
|
|
||||||
dnl avoid warnings like
|
|
||||||
dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
|
|
||||||
dnl This is tricky because of the way 'aclocal' is implemented:
|
|
||||||
dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
|
|
||||||
dnl Otherwise aclocal's initial scan pass would miss the macro definition.
|
|
||||||
dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
|
|
||||||
dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
|
|
||||||
dnl warnings.
|
|
||||||
m4_define([gl_iconv_AC_DEFUN],
|
|
||||||
m4_version_prereq([2.64],
|
|
||||||
[[AC_DEFUN_ONCE(
|
|
||||||
[$1], [$2])]],
|
|
||||||
[[AC_DEFUN(
|
|
||||||
[$1], [$2])]]))
|
|
||||||
gl_iconv_AC_DEFUN([AM_ICONV],
|
|
||||||
[
|
|
||||||
AM_ICONV_LINK
|
|
||||||
if test "$am_cv_func_iconv" = yes; then
|
|
||||||
AC_MSG_CHECKING([for iconv declaration])
|
|
||||||
AC_CACHE_VAL([am_cv_proto_iconv], [
|
|
||||||
AC_TRY_COMPILE([
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <iconv.h>
|
|
||||||
extern
|
|
||||||
#ifdef __cplusplus
|
|
||||||
"C"
|
|
||||||
#endif
|
|
||||||
#if defined(__STDC__) || defined(__cplusplus)
|
|
||||||
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
|
||||||
#else
|
|
||||||
size_t iconv();
|
|
||||||
#endif
|
|
||||||
], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"])
|
|
||||||
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
|
|
||||||
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
|
||||||
AC_MSG_RESULT([
|
|
||||||
$am_cv_proto_iconv])
|
|
||||||
AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
|
|
||||||
[Define as const if the declaration of iconv() needs const.])
|
|
||||||
fi
|
|
||||||
])
|
|
@ -8,20 +8,18 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=json-c
|
PKG_NAME:=json-c
|
||||||
PKG_VERSION:=0.15
|
PKG_VERSION:=0.16
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nodoc.tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-nodoc.tar.gz
|
||||||
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
|
PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
|
||||||
PKG_HASH:=99bca4f944b8ced8ae0bbc6310d6a3528ca715e69541793a1ef51f8c5b4b0878
|
PKG_HASH:=ac8a3dd6820daaca579b23fbc74664310fbc3d67f52f6707cda67d21dde5570f
|
||||||
|
|
||||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
PKG_CPE_ID:=cpe:/a:json-c_project:json-c
|
PKG_CPE_ID:=cpe:/a:json-c_project:json-c
|
||||||
|
|
||||||
PKG_FLAGS := nonshared
|
|
||||||
PKG_BUILD_PARALLEL:=1
|
|
||||||
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
@ -29,9 +27,11 @@ include $(INCLUDE_DIR)/host-build.mk
|
|||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
CMAKE_HOST_OPTIONS += \
|
CMAKE_HOST_OPTIONS += \
|
||||||
-DCMAKE_SKIP_RPATH=FALSE \
|
-DDISABLE_EXTRA_LIBS=TRUE \
|
||||||
-DCMAKE_MACOSX_RPATH=1 \
|
-DBUILD_SHARED_LIBS=FALSE
|
||||||
-DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib"
|
|
||||||
|
CMAKE_OPTIONS += \
|
||||||
|
-DDISABLE_EXTRA_LIBS=TRUE
|
||||||
|
|
||||||
define Package/libjson-c
|
define Package/libjson-c
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
--- a/math_compat.h
|
|
||||||
+++ b/math_compat.h
|
|
||||||
@@ -6,38 +6,9 @@
|
|
||||||
* @brief Do not use, json-c internal, may be changed or removed at any time.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-/* Define isnan, isinf, infinity and nan on Windows/MSVC */
|
|
||||||
-
|
|
||||||
-#ifndef HAVE_DECL_ISNAN
|
|
||||||
-#ifdef HAVE_DECL__ISNAN
|
|
||||||
-#include <float.h>
|
|
||||||
-#define isnan(x) _isnan(x)
|
|
||||||
-#else
|
|
||||||
-/* On platforms like AIX and "IBM i" we need to provide our own isnan */
|
|
||||||
-#define isnan(x) ((x) != (x))
|
|
||||||
-#endif
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
-#ifndef HAVE_DECL_ISINF
|
|
||||||
-#ifdef HAVE_DECL__FINITE
|
|
||||||
-#include <float.h>
|
|
||||||
-#define isinf(x) (!_finite(x))
|
|
||||||
-#else
|
|
||||||
-#include <float.h>
|
|
||||||
-/* On platforms like AIX and "IBM i" we need to provide our own isinf */
|
|
||||||
-#define isinf(x) ((x) < -DBL_MAX || (x) > DBL_MAX)
|
|
||||||
-#endif
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
-#ifndef HAVE_DECL_INFINITY
|
|
||||||
-#include <float.h>
|
|
||||||
-#define INFINITY (DBL_MAX + DBL_MAX)
|
|
||||||
-#define HAVE_DECL_INFINITY
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
-#ifndef HAVE_DECL_NAN
|
|
||||||
-#define NAN (INFINITY - INFINITY)
|
|
||||||
-#define HAVE_DECL_NAN
|
|
||||||
-#endif
|
|
||||||
+#undef isnan
|
|
||||||
+#define isnan(x) __builtin_isnan(x)
|
|
||||||
+#undef isinf
|
|
||||||
+#define isinf(x) __builtin_isinf(x)
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,11 +1,11 @@
|
|||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -401,8 +401,6 @@ set(JSON_C_SOURCES
|
@@ -433,8 +433,6 @@ configure_file(json.h.cmakein ${PROJECT_
|
||||||
include_directories(${PROJECT_SOURCE_DIR})
|
include_directories(${PROJECT_SOURCE_DIR})
|
||||||
include_directories(${PROJECT_BINARY_DIR})
|
include_directories(${PROJECT_BINARY_DIR})
|
||||||
|
|
||||||
-add_subdirectory(doc)
|
-add_subdirectory(doc)
|
||||||
-
|
-
|
||||||
# uninstall
|
# "uninstall" custom target for make generators in unix like operating systems
|
||||||
add_custom_target(uninstall
|
# and if that target is not present
|
||||||
COMMAND cat ${PROJECT_BINARY_DIR}/install_manifest.txt | xargs rm
|
if (CMAKE_GENERATOR STREQUAL "Unix Makefiles")
|
||||||
|
47
package/libs/libmd/Makefile
Normal file
47
package/libs/libmd/Makefile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=libmd
|
||||||
|
PKG_VERSION:=1.0.4
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
|
PKG_SOURCE_URL:=https://archive.hadrons.org/software/libmd/
|
||||||
|
PKG_HASH:=f51c921042e34beddeded4b75557656559cf5b1f2448033b4c1eec11c07e530f
|
||||||
|
|
||||||
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
|
||||||
|
CONFIGURE_ARGS += \
|
||||||
|
--enable-static
|
||||||
|
|
||||||
|
define Package/libmd
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Message Digest functions from BSD systems
|
||||||
|
ABI_VERSION:=0
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libmd/description
|
||||||
|
This library provides message digest functions found on BSD systems either
|
||||||
|
on their libc or libmd libraries and lacking on others like GNU systems,
|
||||||
|
thus making it easier to port projects with strong BSD origins, without
|
||||||
|
needing to embed the same code over and over again on each project.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmd.a $(1)/usr/lib/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libmd*.pc $(1)/usr/lib/pkgconfig/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,libmd))
|
@ -8,12 +8,13 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libnftnl
|
PKG_NAME:=libnftnl
|
||||||
PKG_VERSION:=1.2.0
|
PKG_CPE_ID:=cpe:/a:netfilter:libnftnl
|
||||||
|
PKG_VERSION:=1.2.4
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
|
PKG_SOURCE_URL:=https://netfilter.org/projects/$(PKG_NAME)/files
|
||||||
PKG_HASH:=90b01fddfe9be8c3245c3ba5ff5a4424a8df708828f92b2b361976b658c074f5
|
PKG_HASH:=c0fe233be4cdfd703e7d5977ef8eb63fcbf1d0052b6044e1b23d47ca3562477f
|
||||||
|
|
||||||
PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
|
PKG_MAINTAINER:=Steven Barth <steven@midlink.org>
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
|
@ -12,13 +12,11 @@ PKG_RELEASE:=1
|
|||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libnl-tiny.git
|
||||||
PKG_SOURCE_DATE:=2022-05-23
|
PKG_SOURCE_DATE:=2022-11-01
|
||||||
PKG_SOURCE_VERSION:=28c44ca97cd546ef8168e7476472a0da022b3421
|
PKG_SOURCE_VERSION:=db3b2cdbca5277723326a2720024a59fb821ae36
|
||||||
PKG_MIRROR_HASH:=66151ac44d70510d9320b6c0e002a3c43c787c2d756d1eaaa3b84b12edd34af5
|
PKG_MIRROR_HASH:=f6f9e2cb5366cda3be6d27a6320aa6cf3681c0b10df07b29ab4e4005e9f04f1c
|
||||||
CMAKE_INSTALL:=1
|
CMAKE_INSTALL:=1
|
||||||
|
|
||||||
PKG_FLAGS := nonshared
|
|
||||||
|
|
||||||
PKG_LICENSE:=LGPL-2.1
|
PKG_LICENSE:=LGPL-2.1
|
||||||
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
|
||||||
|
|
||||||
|
@ -20,7 +20,8 @@ PKG_LICENSE:=BSD-3-Clause
|
|||||||
PKG_LICENSE_FILES:=LICENSE
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
PKG_ASLR_PIE_REGULAR:=1
|
PKG_ASLR_PIE_REGULAR:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
|
||||||
|
PKG_CONFIG_DEPENDS := CONFIG_PACKAGE_rpcapd
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
@ -19,7 +19,7 @@ PKG_LICENSE_FILES:=LICENSE
|
|||||||
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
PKG_CPE_ID:=cpe:/a:selinuxproject:libselinux
|
PKG_CPE_ID:=cpe:/a:selinuxproject:libselinux
|
||||||
|
|
||||||
HOST_BUILD_DEPENDS:=libsepol/host pcre/host
|
HOST_BUILD_DEPENDS:=libsepol/host musl-fts/host pcre/host
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2019-2020 OpenWrt.org
|
|
||||||
#
|
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
|
||||||
# See /LICENSE for more information.
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
|
|
||||||
PKG_NAME:=bcm27xx-userland
|
|
||||||
PKG_VERSION:=4a0a19b88b43e48c6b51b526b9378289fb712a4c
|
|
||||||
PKG_RELEASE:=1
|
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/raspberrypi/userland/tar.gz/$(PKG_VERSION)?
|
|
||||||
PKG_HASH:=0f42d48095d1f680cbe8781c2e974b76bdd0507aaef64cce8b8b472ca3a09588
|
|
||||||
|
|
||||||
PKG_FLAGS:=nonshared
|
|
||||||
|
|
||||||
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
|
||||||
|
|
||||||
CMAKE_INSTALL:=1
|
|
||||||
CMAKE_OPTIONS+=-DVMCS_INSTALL_PREFIX=/usr
|
|
||||||
|
|
||||||
ifeq ($(ARCH),aarch64)
|
|
||||||
CMAKE_OPTIONS+=-DARM64=ON
|
|
||||||
else
|
|
||||||
CMAKE_OPTIONS+=-DARM64=OFF
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
|
||||||
|
|
||||||
TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS)
|
|
||||||
TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
|
|
||||||
|
|
||||||
define Package/bcm27xx-userland
|
|
||||||
SECTION:=utils
|
|
||||||
CATEGORY:=Utilities
|
|
||||||
DEPENDS:=@TARGET_bcm27xx
|
|
||||||
TITLE:=BCM27xx userland tools
|
|
||||||
DEFAULT:=y if TARGET_bcm27xx
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/bcm27xx-userland/description
|
|
||||||
BCM27xx userland tools including vcgencmd and tvservice.
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/bcm27xx-userland/install
|
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtmerge $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtparam $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dtoverlay $(1)/usr/bin
|
|
||||||
ifneq ($(ARCH),aarch64)
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspistill $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspivid $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspividyuv $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/raspiyuv $(1)/usr/bin
|
|
||||||
endif
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tvservice $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vcgencmd $(1)/usr/bin
|
|
||||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/vcmailbox $(1)/usr/bin
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/ $(1)/usr/
|
|
||||||
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ $(1)/usr/
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(call BuildPackage,bcm27xx-userland))
|
|
@ -6,12 +6,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libsemanage
|
PKG_NAME:=libsemanage
|
||||||
PKG_VERSION:=3.2
|
PKG_VERSION:=3.3
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/3.2
|
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/$(PKG_VERSION)
|
||||||
PKG_HASH:=d722a55ca4fe2d4e2b30527720db657e6238b28079e69e2e4affeb8e733ee511
|
PKG_HASH:=84d0ec5afa34bbbb471f602d8c1bf317d12443d07852a34b60741d428d597ce8
|
||||||
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
PKG_MAINTAINER:=Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||||
PKG_LICENSE:=LGPL-2.1
|
PKG_LICENSE:=LGPL-2.1
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
74
package/libs/libtraceevent/Makefile
Normal file
74
package/libs/libtraceevent/Makefile
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=libtraceevent
|
||||||
|
PKG_VERSION:=1.6.3
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/
|
||||||
|
PKG_HASH:=031e4428586788bb835d894f7f11c54e482764063d96ead303c7f208fb59e353
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
||||||
|
|
||||||
|
PKG_FIXUP:=autoreconf
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/libtraceevent
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Linux kernel trace event library
|
||||||
|
URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
|
||||||
|
ABI_VERSION:=0
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libtraceevent/description
|
||||||
|
The libtraceevent library provides APIs to access kernel tracepoint events, located in
|
||||||
|
the tracefs file system under the events directory.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libtraceevent-extra
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Extra plugins for libtraceevent
|
||||||
|
DEPENDS:=
|
||||||
|
endef
|
||||||
|
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-static
|
||||||
|
|
||||||
|
PLUGINS_DIR := $(PKG_BUILD_DIR)/plugins
|
||||||
|
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/include/traceevent $(1)/usr/include/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/lib/libtraceevent.{a,so*} $(1)/usr/lib/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/libtraceevent.pc $(1)/usr/lib/pkgconfig/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libtraceevent/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/lib/libtraceevent.so.* $(1)/usr/lib/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) \
|
||||||
|
$(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_MAIN)) \
|
||||||
|
$(1)/usr/lib/traceevent/plugins
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libtraceevent-extra/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
||||||
|
$(CP) \
|
||||||
|
$$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \
|
||||||
|
$$(filter-out $(PLUGINS_MAIN), \
|
||||||
|
$$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \
|
||||||
|
$$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \
|
||||||
|
$(1)/usr/lib/traceevent/plugins
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,libtraceevent))
|
||||||
|
$(eval $(call BuildPackage,libtraceevent-extra))
|
49
package/libs/libtracefs/Makefile
Normal file
49
package/libs/libtracefs/Makefile
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=libtracefs
|
||||||
|
PKG_VERSION:=1.6.1
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/
|
||||||
|
PKG_HASH:=215a5182ee7d5a813ff84d290bb8988aa4c04cc16bb837780f61b0f5bf7494ab
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
||||||
|
|
||||||
|
PKG_FIXUP:=autoreconf
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/libtracefs
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Linux kernel trace file system library
|
||||||
|
URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
||||||
|
DEPENDS+=+libpthread +libtraceevent
|
||||||
|
ABI_VERSION:=0
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libtracefs/description
|
||||||
|
The libtracefs library provides APIs to access kernel trace file system.
|
||||||
|
endef
|
||||||
|
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--enable-shared \
|
||||||
|
--enable-static \
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/lib/libtracefs.{a,so*} $(1)/usr/lib/
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/libtracefs.pc $(1)/usr/lib/pkgconfig/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/libtracefs/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/lib/libtracefs.so.* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,libtracefs))
|
@ -1,18 +1,16 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libubox
|
PKG_NAME:=libubox
|
||||||
PKG_RELEASE=2
|
PKG_RELEASE=1
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libubox.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/libubox.git
|
||||||
PKG_MIRROR_HASH:=7ea3c04e8d274bfc99789f9880c97aead9013095d2ac6dc4fcbee47fc533f3a9
|
PKG_MIRROR_HASH:=400bef38b8c0f382e4e595a50bb52dfbdb8da820eb80f3447b9bd7be3f5499a5
|
||||||
PKG_SOURCE_DATE:=2021-11-04
|
PKG_SOURCE_DATE:=2022-09-27
|
||||||
PKG_SOURCE_VERSION:=c86a894ec63d83ecf2c373bbf9dc8fba9713d942
|
PKG_SOURCE_VERSION:=ea56013409d5823001b47a9bba6f74055a6d76a5
|
||||||
PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE))
|
PKG_ABI_VERSION:=$(call abi_version_str,$(PKG_SOURCE_DATE))
|
||||||
CMAKE_INSTALL:=1
|
CMAKE_INSTALL:=1
|
||||||
|
|
||||||
PKG_FLAGS := nonshared
|
|
||||||
|
|
||||||
PKG_LICENSE:=ISC
|
PKG_LICENSE:=ISC
|
||||||
PKG_LICENSE_FILES:=
|
PKG_LICENSE_FILES:=
|
||||||
|
|
||||||
|
@ -8,18 +8,19 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libusb
|
PKG_NAME:=libusb
|
||||||
PKG_VERSION:=1.0.24
|
PKG_VERSION:=1.0.26
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=\
|
PKG_SOURCE_URL:=\
|
||||||
https://github.com/libusb/libusb/releases/download/v$(PKG_VERSION) \
|
https://github.com/libusb/libusb/releases/download/v$(PKG_VERSION) \
|
||||||
@SF/$(PKG_NAME)
|
@SF/$(PKG_NAME)
|
||||||
PKG_HASH:=7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a
|
PKG_HASH:=12ce7a61fc9854d1d2a1ffe095f7b5fac19ddba095c259e6067a46500381b5a5
|
||||||
|
|
||||||
PKG_MAINTAINER:= Felix Fietkau <nbd@nbd.name>
|
PKG_MAINTAINER:= Felix Fietkau <nbd@nbd.name>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
PKG_CPE_ID:=cpe:/a:libusb:libusb
|
||||||
|
|
||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
@ -30,7 +31,7 @@ define Package/libusb-1.0
|
|||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=A library for accessing Linux USB devices
|
TITLE:=A library for accessing Linux USB devices
|
||||||
DEPENDS:=+libpthread +librt
|
DEPENDS:=+libpthread +librt +libatomic
|
||||||
URL:=http://libusb.info/
|
URL:=http://libusb.info/
|
||||||
ABI_VERSION:=0
|
ABI_VERSION:=0
|
||||||
endef
|
endef
|
||||||
@ -72,7 +73,7 @@ endef
|
|||||||
|
|
||||||
define Package/libusb-1.0/install
|
define Package/libusb-1.0/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-1.0.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-1.0.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/fxload/install
|
define Package/fxload/install
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
From 369af149e3ad92514a2d24f112cedfeb7acaf558 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Chris Dickens <christopher.a.dickens@gmail.com>
|
|
||||||
Date: Sun, 13 Dec 2020 15:46:27 -0800
|
|
||||||
Subject: [PATCH] Correct a typo in the Changelog and clean up a stray file
|
|
||||||
|
|
||||||
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
|
|
||||||
---
|
|
||||||
ChangeLog | 2 +-
|
|
||||||
libusb/version_nano.h | 2 +-
|
|
||||||
test | 0
|
|
||||||
3 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
delete mode 100644 test
|
|
||||||
|
|
||||||
--- a/ChangeLog
|
|
||||||
+++ b/ChangeLog
|
|
||||||
@@ -12,7 +12,7 @@ visit: http://log.libusb.info
|
|
||||||
* Darwin (macOS): use IOUSBDevice as darwin_device_class explicitly (#693)
|
|
||||||
* Linux: Drop support for kernel older than 2.6.32
|
|
||||||
* Linux: Provide an event thread name (#689)
|
|
||||||
-* Linux: Wait until all USBs have been reaped before freeing them (#607)
|
|
||||||
+* Linux: Wait until all URBs have been reaped before freeing them (#607)
|
|
||||||
* NetBSD: Recognize device timeouts (#710)
|
|
||||||
* OpenBSD: Allow opening ugen devices multiple times (#763)
|
|
||||||
* OpenBSD: Support libusb_get_port_number() (#764)
|
|
||||||
--- a/libusb/version_nano.h
|
|
||||||
+++ b/libusb/version_nano.h
|
|
||||||
@@ -1 +1 @@
|
|
||||||
-#define LIBUSB_NANO 11584
|
|
||||||
+#define LIBUSB_NANO 11585
|
|
@ -1,61 +0,0 @@
|
|||||||
From f6d2cb561402c3b6d3627c0eb89e009b503d9067 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Chris Dickens <christopher.a.dickens@gmail.com>
|
|
||||||
Date: Sun, 13 Dec 2020 15:49:19 -0800
|
|
||||||
Subject: [PATCH] linux_usbfs: Fix parsing of descriptors for
|
|
||||||
multi-configuration devices
|
|
||||||
|
|
||||||
Commit e2be556bd2 ("linux_usbfs: Parse config descriptors during device
|
|
||||||
initialization") introduced a regression for devices with multiple
|
|
||||||
configurations. The logic that verifies the reported length of the
|
|
||||||
configuration descriptors failed to count the length of the
|
|
||||||
configuration descriptor itself and would truncate the actual length by
|
|
||||||
9 bytes, leading to a parsing error for subsequent descriptors.
|
|
||||||
|
|
||||||
Closes #825
|
|
||||||
|
|
||||||
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
|
|
||||||
---
|
|
||||||
libusb/os/linux_usbfs.c | 12 ++++++++----
|
|
||||||
libusb/version_nano.h | 2 +-
|
|
||||||
2 files changed, 9 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
--- a/libusb/os/linux_usbfs.c
|
|
||||||
+++ b/libusb/os/linux_usbfs.c
|
|
||||||
@@ -641,7 +641,12 @@ static int seek_to_next_config(struct li
|
|
||||||
uint8_t *buffer, size_t len)
|
|
||||||
{
|
|
||||||
struct usbi_descriptor_header *header;
|
|
||||||
- int offset = 0;
|
|
||||||
+ int offset;
|
|
||||||
+
|
|
||||||
+ /* Start seeking past the config descriptor */
|
|
||||||
+ offset = LIBUSB_DT_CONFIG_SIZE;
|
|
||||||
+ buffer += LIBUSB_DT_CONFIG_SIZE;
|
|
||||||
+ len -= LIBUSB_DT_CONFIG_SIZE;
|
|
||||||
|
|
||||||
while (len > 0) {
|
|
||||||
if (len < 2) {
|
|
||||||
@@ -718,7 +723,7 @@ static int parse_config_descriptors(stru
|
|
||||||
}
|
|
||||||
|
|
||||||
if (priv->sysfs_dir) {
|
|
||||||
- /*
|
|
||||||
+ /*
|
|
||||||
* In sysfs wTotalLength is ignored, instead the kernel returns a
|
|
||||||
* config descriptor with verified bLength fields, with descriptors
|
|
||||||
* with an invalid bLength removed.
|
|
||||||
@@ -727,8 +732,7 @@ static int parse_config_descriptors(stru
|
|
||||||
int offset;
|
|
||||||
|
|
||||||
if (num_configs > 1 && idx < num_configs - 1) {
|
|
||||||
- offset = seek_to_next_config(ctx, buffer + LIBUSB_DT_CONFIG_SIZE,
|
|
||||||
- remaining - LIBUSB_DT_CONFIG_SIZE);
|
|
||||||
+ offset = seek_to_next_config(ctx, buffer, remaining);
|
|
||||||
if (offset < 0)
|
|
||||||
return offset;
|
|
||||||
sysfs_config_len = (uint16_t)offset;
|
|
||||||
--- a/libusb/version_nano.h
|
|
||||||
+++ b/libusb/version_nano.h
|
|
||||||
@@ -1 +1 @@
|
|
||||||
-#define LIBUSB_NANO 11585
|
|
||||||
+#define LIBUSB_NANO 11586
|
|
193
package/libs/mbedtls/Config.in
Normal file
193
package/libs/mbedtls/Config.in
Normal file
@ -0,0 +1,193 @@
|
|||||||
|
if PACKAGE_libmbedtls
|
||||||
|
|
||||||
|
comment "Option details in source code: include/mbedtls/mbedtls_config.h"
|
||||||
|
|
||||||
|
comment "Ciphers - unselect old or less-used ciphers to reduce binary size"
|
||||||
|
|
||||||
|
config MBEDTLS_AES_C
|
||||||
|
bool "MBEDTLS_AES_C"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_CAMELLIA_C
|
||||||
|
bool "MBEDTLS_CAMELLIA_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_CCM_C
|
||||||
|
bool "MBEDTLS_CCM_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_CMAC_C
|
||||||
|
bool "MBEDTLS_CMAC_C (old but used by hostapd)"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_DES_C
|
||||||
|
bool "MBEDTLS_DES_C (old but used by hostapd)"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_GCM_C
|
||||||
|
bool "MBEDTLS_GCM_C"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_NIST_KW_C
|
||||||
|
bool "MBEDTLS_NIST_KW_C (old but used by hostapd)"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_RIPEMD160_C
|
||||||
|
bool "MBEDTLS_RIPEMD160_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_XTEA_C
|
||||||
|
bool "MBEDTLS_XTEA_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_RSA_NO_CRT
|
||||||
|
bool "MBEDTLS_RSA_NO_CRT"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_PSK_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_RSA_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
||||||
|
bool "MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
comment "Curves - unselect old or less-used curves to reduce binary size"
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP192R1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP224R1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP256R1_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP384R1_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP521R1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP192K1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP224K1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_SECP256K1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_SECP256K1_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_BP256R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_BP256R1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_BP384R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_BP384R1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_BP512R1_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_BP512R1_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_CURVE25519_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_CURVE25519_ENABLED"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_ECP_DP_CURVE448_ENABLED
|
||||||
|
bool "MBEDTLS_ECP_DP_CURVE448_ENABLED"
|
||||||
|
default n
|
||||||
|
|
||||||
|
comment "Build Options - unselect features to reduce binary size"
|
||||||
|
|
||||||
|
config MBEDTLS_CERTS_C
|
||||||
|
bool "MBEDTLS_CERTS_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_CIPHER_MODE_OFB
|
||||||
|
bool "MBEDTLS_CIPHER_MODE_OFB"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_CIPHER_MODE_XTS
|
||||||
|
bool "MBEDTLS_CIPHER_MODE_XTS"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_DEBUG_C
|
||||||
|
bool "MBEDTLS_DEBUG_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_HKDF_C
|
||||||
|
bool "MBEDTLS_HKDF_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_PLATFORM_C
|
||||||
|
bool "MBEDTLS_PLATFORM_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_SELF_TEST
|
||||||
|
bool "MBEDTLS_SELF_TEST"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_SSL_TRUNCATED_HMAC
|
||||||
|
bool "MBEDTLS_SSL_TRUNCATED_HMAC"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_VERSION_C
|
||||||
|
bool "MBEDTLS_VERSION_C"
|
||||||
|
default n
|
||||||
|
|
||||||
|
config MBEDTLS_VERSION_FEATURES
|
||||||
|
bool "MBEDTLS_VERSION_FEATURES"
|
||||||
|
default n
|
||||||
|
|
||||||
|
comment "Build Options"
|
||||||
|
|
||||||
|
config MBEDTLS_ENTROPY_FORCE_SHA256
|
||||||
|
bool "MBEDTLS_ENTROPY_FORCE_SHA256"
|
||||||
|
default y
|
||||||
|
|
||||||
|
config MBEDTLS_SSL_RENEGOTIATION
|
||||||
|
bool "MBEDTLS_SSL_RENEGOTIATION"
|
||||||
|
default n
|
||||||
|
|
||||||
|
endif
|
@ -20,11 +20,60 @@ PKG_LICENSE:=GPL-2.0-or-later
|
|||||||
PKG_LICENSE_FILES:=gpl-2.0.txt
|
PKG_LICENSE_FILES:=gpl-2.0.txt
|
||||||
PKG_CPE_ID:=cpe:/a:arm:mbed_tls
|
PKG_CPE_ID:=cpe:/a:arm:mbed_tls
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS := \
|
MBEDTLS_BUILD_OPTS_CURVES= \
|
||||||
CONFIG_LIBMBEDTLS_DEBUG_C \
|
CONFIG_MBEDTLS_ECP_DP_SECP192R1_ENABLED \
|
||||||
CONFIG_LIBMBEDTLS_HAVE_ARMV8CE_AES \
|
CONFIG_MBEDTLS_ECP_DP_SECP224R1_ENABLED \
|
||||||
CONFIG_LIBMBEDTLS_HAVE_SSE2 \
|
CONFIG_MBEDTLS_ECP_DP_SECP256R1_ENABLED \
|
||||||
CONFIG_LIBMBEDTLS_HKDF_C
|
CONFIG_MBEDTLS_ECP_DP_SECP384R1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_SECP521R1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_SECP192K1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_SECP224K1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_SECP256K1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_BP256R1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_BP384R1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_BP512R1_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_CURVE25519_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_ECP_DP_CURVE448_ENABLED
|
||||||
|
|
||||||
|
MBEDTLS_BUILD_OPTS_CIPHERS= \
|
||||||
|
CONFIG_MBEDTLS_AES_C \
|
||||||
|
CONFIG_MBEDTLS_CAMELLIA_C \
|
||||||
|
CONFIG_MBEDTLS_CCM_C \
|
||||||
|
CONFIG_MBEDTLS_CMAC_C \
|
||||||
|
CONFIG_MBEDTLS_DES_C \
|
||||||
|
CONFIG_MBEDTLS_GCM_C \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_PSK_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED \
|
||||||
|
CONFIG_MBEDTLS_NIST_KW_C \
|
||||||
|
CONFIG_MBEDTLS_RIPEMD160_C \
|
||||||
|
CONFIG_MBEDTLS_RSA_NO_CRT \
|
||||||
|
CONFIG_MBEDTLS_XTEA_C
|
||||||
|
|
||||||
|
MBEDTLS_BUILD_OPTS= \
|
||||||
|
$(MBEDTLS_BUILD_OPTS_CURVES) \
|
||||||
|
$(MBEDTLS_BUILD_OPTS_CIPHERS) \
|
||||||
|
CONFIG_MBEDTLS_CERTS_C \
|
||||||
|
CONFIG_MBEDTLS_CIPHER_MODE_OFB \
|
||||||
|
CONFIG_MBEDTLS_CIPHER_MODE_XTS \
|
||||||
|
CONFIG_MBEDTLS_DEBUG_C \
|
||||||
|
CONFIG_MBEDTLS_ENTROPY_FORCE_SHA256 \
|
||||||
|
CONFIG_MBEDTLS_HKDF_C \
|
||||||
|
CONFIG_MBEDTLS_PLATFORM_C \
|
||||||
|
CONFIG_MBEDTLS_SELF_TEST \
|
||||||
|
CONFIG_MBEDTLS_SSL_RENEGOTIATION \
|
||||||
|
CONFIG_MBEDTLS_SSL_TRUNCATED_HMAC \
|
||||||
|
CONFIG_MBEDTLS_VERSION_C \
|
||||||
|
CONFIG_MBEDTLS_VERSION_FEATURES
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS := $(MBEDTLS_BUILD_OPTS)
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/cmake.mk
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
@ -45,56 +94,12 @@ $(call Package/mbedtls/Default)
|
|||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
SUBMENU:=SSL
|
SUBMENU:=SSL
|
||||||
TITLE+= (library)
|
TITLE+= (library)
|
||||||
PKGFLAGS:=nonshared
|
|
||||||
ABI_VERSION:=12
|
ABI_VERSION:=12
|
||||||
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libmbedtls/config
|
define Package/libmbedtls/config
|
||||||
config LIBMBEDTLS_DEBUG_C
|
source "$(SOURCE)/Config.in"
|
||||||
depends on PACKAGE_libmbedtls
|
|
||||||
bool "Enable debug functions"
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
This option enables mbedtls library's debug functions.
|
|
||||||
|
|
||||||
It increases the uncompressed libmbedtls binary size
|
|
||||||
by around 60 KiB (for an ARMv5 platform).
|
|
||||||
|
|
||||||
Usually, you don't need this, so don't select this if you're unsure.
|
|
||||||
|
|
||||||
config LIBMBEDTLS_HAVE_ARMV8CE_AES
|
|
||||||
depends on PACKAGE_libmbedtls
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
prompt "Enable use of the ARMv8 Crypto Extensions"
|
|
||||||
depends on aarch64 && !TARGET_bcm27xx
|
|
||||||
help
|
|
||||||
Use of the ARMv8 Crypto Extensions greatly increase performance
|
|
||||||
(up to 4x faster on AES-GCM while 10x faster on raw AES).
|
|
||||||
|
|
||||||
If you don't sure, say Y here.
|
|
||||||
|
|
||||||
config LIBMBEDTLS_HAVE_SSE2
|
|
||||||
depends on PACKAGE_libmbedtls
|
|
||||||
bool
|
|
||||||
default y if !TARGET_x86_legacy && !TARGET_x86_geode
|
|
||||||
prompt "Enable use of x86 SSE2 instructions"
|
|
||||||
depends on x86_64 || i386
|
|
||||||
help
|
|
||||||
Use of SSE2 instructions greatly increase performance (up to
|
|
||||||
3x faster) with a minimum (~0.2%, or 23KB) increase in package
|
|
||||||
size, but it will bring no benefit if your hardware does not
|
|
||||||
support them, such as Geode GX and LX. In this case you may
|
|
||||||
save 23KB by saying yes here. AMD Geode NX, and Intel
|
|
||||||
Pentium 4 and above support SSE2.
|
|
||||||
|
|
||||||
config LIBMBEDTLS_HKDF_C
|
|
||||||
depends on PACKAGE_libmbedtls
|
|
||||||
bool "Enable the HKDF algorithm (RFC 5869)"
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
This option adds support for the Hashed Message Authentication Code
|
|
||||||
(HMAC)-based key derivation function (HKDF).
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/mbedtls-util
|
define Package/mbedtls-util
|
||||||
@ -118,9 +123,6 @@ endef
|
|||||||
|
|
||||||
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||||
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
|
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
|
||||||
ifneq ($(CONFIG_LIBMBEDTLS_HAVE_ARMV8CE_AES),)
|
|
||||||
TARGET_CFLAGS := $(filter-out -march=%,$(TARGET_CFLAGS)) -march=armv8-a+crypto
|
|
||||||
endif
|
|
||||||
|
|
||||||
CMAKE_OPTIONS += \
|
CMAKE_OPTIONS += \
|
||||||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
||||||
@ -129,28 +131,22 @@ CMAKE_OPTIONS += \
|
|||||||
-DENABLE_PROGRAMS:Bool=ON
|
-DENABLE_PROGRAMS:Bool=ON
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(Build/Configure/Default)
|
$(call Build/Configure/Default)
|
||||||
|
|
||||||
awk 'BEGIN { rc = 1 } \
|
|
||||||
/#define MBEDTLS_DEBUG_C/ { $$$$0 = "$(if $(CONFIG_LIBMBEDTLS_DEBUG_C),,// )#define MBEDTLS_DEBUG_C"; rc = 0 } \
|
|
||||||
/#define MBEDTLS_ARMV8CE_AES_C/ { $$$$0 = "$(if $(CONFIG_LIBMBEDTLS_HAVE_ARMV8CE_AES),,// )#define MBEDTLS_ARMV8CE_AES_C"; rc = 0 } \
|
|
||||||
/#define MBEDTLS_HAVE_SSE2/ { $$$$0 = "$(if $(CONFIG_LIBMBEDTLS_HAVE_SSE2),,// )#define MBEDTLS_HAVE_SSE2"; rc = 0 } \
|
|
||||||
{ print } \
|
|
||||||
END { exit(rc) }' $(PKG_BUILD_DIR)/include/mbedtls/config.h \
|
|
||||||
>$(PKG_BUILD_DIR)/include/mbedtls/config.h.new && \
|
|
||||||
mv $(PKG_BUILD_DIR)/include/mbedtls/config.h.new $(PKG_BUILD_DIR)/include/mbedtls/config.h
|
|
||||||
|
|
||||||
awk 'BEGIN { rc = 1 } \
|
|
||||||
/#define MBEDTLS_HKDF_C/ { $$$$0 = "$(if $(CONFIG_LIBMBEDTLS_HKDF_C),,// )#define MBEDTLS_HKDF_C"; rc = 0 } \
|
|
||||||
{ print } \
|
|
||||||
END { exit(rc) }' $(PKG_BUILD_DIR)/include/mbedtls/config.h \
|
|
||||||
>$(PKG_BUILD_DIR)/include/mbedtls/config.h.new && \
|
|
||||||
mv $(PKG_BUILD_DIR)/include/mbedtls/config.h.new $(PKG_BUILD_DIR)/include/mbedtls/config.h
|
|
||||||
|
|
||||||
sed -i '/fuzz/d' $(PKG_BUILD_DIR)/programs/CMakeLists.txt
|
sed -i '/fuzz/d' $(PKG_BUILD_DIR)/programs/CMakeLists.txt
|
||||||
sed -i '/test/d' $(PKG_BUILD_DIR)/programs/CMakeLists.txt
|
sed -i '/test/d' $(PKG_BUILD_DIR)/programs/CMakeLists.txt
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
$(call Build/Prepare/Default)
|
||||||
|
|
||||||
|
$(if $(strip $(foreach opt,$(MBEDTLS_BUILD_OPTS),$($(opt)))),
|
||||||
|
$(foreach opt,$(MBEDTLS_BUILD_OPTS),
|
||||||
|
$(PKG_BUILD_DIR)/scripts/config.py \
|
||||||
|
-f $(PKG_BUILD_DIR)/include/mbedtls/config.h \
|
||||||
|
$(if $($(opt)),set,unset) $(patsubst CONFIG_%,%,$(opt))),)
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/mbedtls $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/mbedtls $(1)/usr/include/
|
||||||
|
@ -1,390 +0,0 @@
|
|||||||
From dfb6015ca79a9fee28f7fcb0af7e350a83574b83 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Markku-Juhani O. Saarinen" <mjos@mjos.fi>
|
|
||||||
Date: Mon, 20 Nov 2017 14:58:41 +0000
|
|
||||||
Subject: Implements AES and GCM with ARMv8 Crypto Extensions
|
|
||||||
|
|
||||||
A compact patch that provides AES and GCM implementations that utilize the
|
|
||||||
ARMv8 Crypto Extensions. The config flag is MBEDTLS_ARMV8CE_AES_C, which
|
|
||||||
is disabled by default as we don't do runtime checking for the feature.
|
|
||||||
The new implementation lives in armv8ce_aes.c.
|
|
||||||
|
|
||||||
Provides similar functionality to https://github.com/ARMmbed/mbedtls/pull/432
|
|
||||||
Thanks to Barry O'Rourke and others for that contribtion.
|
|
||||||
|
|
||||||
Tested on a Cortex A53 device and QEMU. On a midrange phone the real AES-GCM
|
|
||||||
throughput increases about 4x, while raw AES speed is up to 10x faster.
|
|
||||||
|
|
||||||
When cross-compiling, you want to set something like:
|
|
||||||
|
|
||||||
export CC='aarch64-linux-gnu-gcc'
|
|
||||||
export CFLAGS='-Ofast -march=armv8-a+crypto'
|
|
||||||
scripts/config.pl set MBEDTLS_ARMV8CE_AES_C
|
|
||||||
|
|
||||||
QEMU seems to also need
|
|
||||||
|
|
||||||
export LDFLAGS='-static'
|
|
||||||
|
|
||||||
Then run normal make or cmake etc.
|
|
||||||
---
|
|
||||||
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/ChangeLog.d/armv8_crypto_extensions.txt
|
|
||||||
@@ -0,0 +1,2 @@
|
|
||||||
+Features
|
|
||||||
+ * Support ARMv8 Cryptography Extensions for AES and GCM.
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/include/mbedtls/armv8ce_aes.h
|
|
||||||
@@ -0,0 +1,63 @@
|
|
||||||
+/**
|
|
||||||
+ * \file armv8ce_aes.h
|
|
||||||
+ *
|
|
||||||
+ * \brief ARMv8 Cryptography Extensions -- Optimized code for AES and GCM
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ *
|
|
||||||
+ * Copyright (C) 2006-2017, ARM Limited, All Rights Reserved
|
|
||||||
+ * SPDX-License-Identifier: Apache-2.0
|
|
||||||
+ *
|
|
||||||
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
+ * not use this file except in compliance with the License.
|
|
||||||
+ * You may obtain a copy of the License at
|
|
||||||
+ *
|
|
||||||
+ * http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
+ *
|
|
||||||
+ * Unless required by applicable law or agreed to in writing, software
|
|
||||||
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
+ * See the License for the specific language governing permissions and
|
|
||||||
+ * limitations under the License.
|
|
||||||
+ *
|
|
||||||
+ * This file is part of mbed TLS (https://tls.mbed.org)
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#ifndef MBEDTLS_ARMV8CE_AES_H
|
|
||||||
+#define MBEDTLS_ARMV8CE_AES_H
|
|
||||||
+
|
|
||||||
+#include "aes.h"
|
|
||||||
+
|
|
||||||
+/**
|
|
||||||
+ * \brief [ARMv8 Crypto Extensions] AES-ECB block en(de)cryption
|
|
||||||
+ *
|
|
||||||
+ * \param ctx AES context
|
|
||||||
+ * \param mode MBEDTLS_AES_ENCRYPT or MBEDTLS_AES_DECRYPT
|
|
||||||
+ * \param input 16-byte input block
|
|
||||||
+ * \param output 16-byte output block
|
|
||||||
+ *
|
|
||||||
+ * \return 0 on success (cannot fail)
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+int mbedtls_armv8ce_aes_crypt_ecb( mbedtls_aes_context *ctx,
|
|
||||||
+ int mode,
|
|
||||||
+ const unsigned char input[16],
|
|
||||||
+ unsigned char output[16] );
|
|
||||||
+
|
|
||||||
+/**
|
|
||||||
+ * \brief [ARMv8 Crypto Extensions] Multiply in GF(2^128) for GCM
|
|
||||||
+ *
|
|
||||||
+ * \param c Result
|
|
||||||
+ * \param a First operand
|
|
||||||
+ * \param b Second operand
|
|
||||||
+ *
|
|
||||||
+ * \note Both operands and result are bit strings interpreted as
|
|
||||||
+ * elements of GF(2^128) as per the GCM spec.
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+void mbedtls_armv8ce_gcm_mult( unsigned char c[16],
|
|
||||||
+ const unsigned char a[16],
|
|
||||||
+ const unsigned char b[16] );
|
|
||||||
+
|
|
||||||
+#endif /* MBEDTLS_ARMV8CE_AES_H */
|
|
||||||
--- a/include/mbedtls/check_config.h
|
|
||||||
+++ b/include/mbedtls/check_config.h
|
|
||||||
@@ -72,6 +72,10 @@
|
|
||||||
#error "MBEDTLS_AESNI_C defined, but not all prerequisites"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C) && !defined(MBEDTLS_HAVE_ASM)
|
|
||||||
+#error "MBEDTLS_ARMV8CE_AES_C defined, but not all prerequisites"
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#if defined(MBEDTLS_CTR_DRBG_C) && !defined(MBEDTLS_AES_C)
|
|
||||||
#error "MBEDTLS_CTR_DRBG_C defined, but not all prerequisites"
|
|
||||||
#endif
|
|
||||||
@@ -897,3 +901,4 @@
|
|
||||||
typedef int mbedtls_iso_c_forbids_empty_translation_units;
|
|
||||||
|
|
||||||
#endif /* MBEDTLS_CHECK_CONFIG_H */
|
|
||||||
+
|
|
||||||
--- a/include/mbedtls/config.h
|
|
||||||
+++ b/include/mbedtls/config.h
|
|
||||||
@@ -46,6 +46,7 @@
|
|
||||||
* Requires support for asm() in compiler.
|
|
||||||
*
|
|
||||||
* Used in:
|
|
||||||
+ * library/armv8ce_aes.c
|
|
||||||
* library/aria.c
|
|
||||||
* library/timing.c
|
|
||||||
* include/mbedtls/bn_mul.h
|
|
||||||
@@ -2313,6 +2314,21 @@
|
|
||||||
#define MBEDTLS_AESNI_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
+ * \def MBEDTLS_ARMV8CE_AES_C
|
|
||||||
+ *
|
|
||||||
+ * Enable ARMv8 Crypto Extensions for AES and GCM
|
|
||||||
+ *
|
|
||||||
+ * Module: library/armv8ce_aes.c
|
|
||||||
+ * Caller: library/aes.c
|
|
||||||
+ * library/gcm.c
|
|
||||||
+ *
|
|
||||||
+ * Requires: MBEDTLS_HAVE_ASM
|
|
||||||
+ *
|
|
||||||
+ * This module adds support for Armv8 Cryptography Extensions for AES and GCM.
|
|
||||||
+ */
|
|
||||||
+//#define MBEDTLS_ARMV8CE_AES_C
|
|
||||||
+
|
|
||||||
+/**
|
|
||||||
* \def MBEDTLS_AES_C
|
|
||||||
*
|
|
||||||
* Enable the AES block cipher.
|
|
||||||
--- a/library/aes.c
|
|
||||||
+++ b/library/aes.c
|
|
||||||
@@ -39,7 +39,9 @@
|
|
||||||
#if defined(MBEDTLS_AESNI_C)
|
|
||||||
#include "mbedtls/aesni.h"
|
|
||||||
#endif
|
|
||||||
-
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+#include "mbedtls/armv8ce_aes.h"
|
|
||||||
+#endif
|
|
||||||
#if defined(MBEDTLS_SELF_TEST)
|
|
||||||
#if defined(MBEDTLS_PLATFORM_C)
|
|
||||||
#include "mbedtls/platform.h"
|
|
||||||
@@ -999,6 +1001,11 @@ int mbedtls_aes_crypt_ecb( mbedtls_aes_c
|
|
||||||
return( mbedtls_aesni_crypt_ecb( ctx, mode, input, output ) );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+ // We don't do runtime checking for ARMv8 Crypto Extensions
|
|
||||||
+ return mbedtls_armv8ce_aes_crypt_ecb( ctx, mode, input, output );
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#if defined(MBEDTLS_PADLOCK_C) && defined(MBEDTLS_HAVE_X86)
|
|
||||||
if( aes_padlock_ace )
|
|
||||||
{
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/library/armv8ce_aes.c
|
|
||||||
@@ -0,0 +1,142 @@
|
|
||||||
+/*
|
|
||||||
+ * ARMv8 Cryptography Extensions -- Optimized code for AES and GCM
|
|
||||||
+ *
|
|
||||||
+ * Copyright (C) 2006-2017, ARM Limited, All Rights Reserved
|
|
||||||
+ * SPDX-License-Identifier: Apache-2.0
|
|
||||||
+ *
|
|
||||||
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
+ * not use this file except in compliance with the License.
|
|
||||||
+ * You may obtain a copy of the License at
|
|
||||||
+ *
|
|
||||||
+ * http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
+ *
|
|
||||||
+ * Unless required by applicable law or agreed to in writing, software
|
|
||||||
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
+ * See the License for the specific language governing permissions and
|
|
||||||
+ * limitations under the License.
|
|
||||||
+ *
|
|
||||||
+ * This file is part of mbed TLS (https://tls.mbed.org)
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#if !defined(MBEDTLS_CONFIG_FILE)
|
|
||||||
+#include "mbedtls/config.h"
|
|
||||||
+#else
|
|
||||||
+#include MBEDTLS_CONFIG_FILE
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+
|
|
||||||
+#include <arm_neon.h>
|
|
||||||
+#include "mbedtls/armv8ce_aes.h"
|
|
||||||
+
|
|
||||||
+#ifndef asm
|
|
||||||
+#define asm __asm
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * [Armv8 Cryptography Extensions] AES-ECB block en(de)cryption
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#if defined(MBEDTLS_AES_C)
|
|
||||||
+
|
|
||||||
+int mbedtls_armv8ce_aes_crypt_ecb( mbedtls_aes_context *ctx,
|
|
||||||
+ int mode,
|
|
||||||
+ const unsigned char input[16],
|
|
||||||
+ unsigned char output[16] )
|
|
||||||
+{
|
|
||||||
+ unsigned int i;
|
|
||||||
+ const uint8_t *rk;
|
|
||||||
+ uint8x16_t x, k;
|
|
||||||
+
|
|
||||||
+ x = vld1q_u8( input ); /* input block */
|
|
||||||
+ rk = (const uint8_t *) ctx->rk; /* round keys */
|
|
||||||
+
|
|
||||||
+ if( mode == MBEDTLS_AES_ENCRYPT )
|
|
||||||
+ {
|
|
||||||
+ for( i = ctx->nr - 1; i != 0; i-- ) /* encryption loop */
|
|
||||||
+ {
|
|
||||||
+ k = vld1q_u8( rk );
|
|
||||||
+ rk += 16;
|
|
||||||
+ x = vaeseq_u8( x, k );
|
|
||||||
+ x = vaesmcq_u8( x );
|
|
||||||
+ }
|
|
||||||
+ k = vld1q_u8( rk );
|
|
||||||
+ rk += 16;
|
|
||||||
+ x = vaeseq_u8( x, k );
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ {
|
|
||||||
+ for( i = ctx->nr - 1; i != 0 ; i-- ) /* decryption loop */
|
|
||||||
+ {
|
|
||||||
+ k = vld1q_u8( rk );
|
|
||||||
+ rk += 16;
|
|
||||||
+ x = vaesdq_u8( x, k );
|
|
||||||
+ x = vaesimcq_u8( x );
|
|
||||||
+ }
|
|
||||||
+ k = vld1q_u8( rk );
|
|
||||||
+ rk += 16;
|
|
||||||
+ x = vaesdq_u8( x, k );
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ k = vld1q_u8( rk ); /* final key just XORed */
|
|
||||||
+ x = veorq_u8( x, k );
|
|
||||||
+ vst1q_u8( output, x ); /* write out */
|
|
||||||
+
|
|
||||||
+ return ( 0 );
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#endif /* MBEDTLS_AES_C */
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+/*
|
|
||||||
+ * [Armv8 Cryptography Extensions] Multiply in GF(2^128) for GCM
|
|
||||||
+ */
|
|
||||||
+
|
|
||||||
+#if defined(MBEDTLS_GCM_C)
|
|
||||||
+
|
|
||||||
+void mbedtls_armv8ce_gcm_mult( unsigned char c[16],
|
|
||||||
+ const unsigned char a[16],
|
|
||||||
+ const unsigned char b[16] )
|
|
||||||
+{
|
|
||||||
+ /* GCM's GF(2^128) polynomial basis is x^128 + x^7 + x^2 + x + 1 */
|
|
||||||
+ const uint64x2_t base = { 0, 0x86 }; /* note missing LS bit */
|
|
||||||
+
|
|
||||||
+ register uint8x16_t vc asm( "v0" ); /* named registers */
|
|
||||||
+ register uint8x16_t va asm( "v1" ); /* (to avoid conflict) */
|
|
||||||
+ register uint8x16_t vb asm( "v2" );
|
|
||||||
+ register uint64x2_t vp asm( "v3" );
|
|
||||||
+
|
|
||||||
+ va = vld1q_u8( a ); /* load inputs */
|
|
||||||
+ vb = vld1q_u8( b );
|
|
||||||
+ vp = base;
|
|
||||||
+
|
|
||||||
+ asm (
|
|
||||||
+ "rbit %1.16b, %1.16b \n\t" /* reverse bit order */
|
|
||||||
+ "rbit %2.16b, %2.16b \n\t"
|
|
||||||
+ "pmull2 %0.1q, %1.2d, %2.2d \n\t" /* v0 = a.hi * b.hi */
|
|
||||||
+ "pmull2 v4.1q, %0.2d, %3.2d \n\t" /* mul v0 by x^64, reduce */
|
|
||||||
+ "ext %0.16b, %0.16b, %0.16b, #8 \n\t"
|
|
||||||
+ "eor %0.16b, %0.16b, v4.16b \n\t"
|
|
||||||
+ "ext v5.16b, %2.16b, %2.16b, #8 \n\t" /* (swap hi and lo in b) */
|
|
||||||
+ "pmull v4.1q, %1.1d, v5.1d \n\t" /* v0 ^= a.lo * b.hi */
|
|
||||||
+ "eor %0.16b, %0.16b, v4.16b \n\t"
|
|
||||||
+ "pmull2 v4.1q, %1.2d, v5.2d \n\t" /* v0 ^= a.hi * b.lo */
|
|
||||||
+ "eor %0.16b, %0.16b, v4.16b \n\t"
|
|
||||||
+ "pmull2 v4.1q, %0.2d, %3.2d \n\t" /* mul v0 by x^64, reduce */
|
|
||||||
+ "ext %0.16b, %0.16b, %0.16b, #8 \n\t"
|
|
||||||
+ "eor %0.16b, %0.16b, v4.16b \n\t"
|
|
||||||
+ "pmull v4.1q, %1.1d, %2.1d \n\t" /* v0 ^= a.lo * b.lo */
|
|
||||||
+ "eor %0.16b, %0.16b, v4.16b \n\t"
|
|
||||||
+ "rbit %0.16b, %0.16b \n\t" /* reverse bits for output */
|
|
||||||
+ : "=w" (vc) /* q0: output */
|
|
||||||
+ : "w" (va), "w" (vb), "w" (vp) /* q1, q2: input */
|
|
||||||
+ : "v4", "v5" /* q4, q5: clobbered */
|
|
||||||
+ );
|
|
||||||
+
|
|
||||||
+ vst1q_u8( c, vc ); /* write out */
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+#endif /* MBEDTLS_GCM_C */
|
|
||||||
+
|
|
||||||
+#endif /* MBEDTLS_ARMV8CE_AES_C */
|
|
||||||
--- a/library/CMakeLists.txt
|
|
||||||
+++ b/library/CMakeLists.txt
|
|
||||||
@@ -15,6 +15,7 @@ set(src_crypto
|
|
||||||
aesni.c
|
|
||||||
arc4.c
|
|
||||||
aria.c
|
|
||||||
+ armv8ce_aes.c
|
|
||||||
asn1parse.c
|
|
||||||
asn1write.c
|
|
||||||
base64.c
|
|
||||||
--- a/library/gcm.c
|
|
||||||
+++ b/library/gcm.c
|
|
||||||
@@ -41,6 +41,10 @@
|
|
||||||
#include "mbedtls/aesni.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+#include "mbedtls/armv8ce_aes.h"
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C)
|
|
||||||
#include "mbedtls/aes.h"
|
|
||||||
#include "mbedtls/platform.h"
|
|
||||||
@@ -87,6 +91,12 @@ static int gcm_gen_table( mbedtls_gcm_co
|
|
||||||
if( ( ret = mbedtls_cipher_update( &ctx->cipher_ctx, h, 16, h, &olen ) ) != 0 )
|
|
||||||
return( ret );
|
|
||||||
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+ // we don't do feature testing with ARMv8 cryptography extensions
|
|
||||||
+ memcpy( ctx ->HL, h, 16 ); // put H at the beginning of buffer
|
|
||||||
+ return( 0 ); // that's all we need
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* pack h as two 64-bits ints, big-endian */
|
|
||||||
hi = MBEDTLS_GET_UINT32_BE( h, 0 );
|
|
||||||
lo = MBEDTLS_GET_UINT32_BE( h, 4 );
|
|
||||||
@@ -196,6 +206,11 @@ static void gcm_mult( mbedtls_gcm_contex
|
|
||||||
unsigned char lo, hi, rem;
|
|
||||||
uint64_t zh, zl;
|
|
||||||
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+ mbedtls_armv8ce_gcm_mult( output, x, (const unsigned char *) ctx->HL );
|
|
||||||
+ return;
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#if defined(MBEDTLS_AESNI_C) && defined(MBEDTLS_HAVE_X86_64)
|
|
||||||
if( mbedtls_aesni_has_support( MBEDTLS_AESNI_CLMUL ) ) {
|
|
||||||
unsigned char h[16];
|
|
||||||
--- a/library/Makefile
|
|
||||||
+++ b/library/Makefile
|
|
||||||
@@ -74,6 +74,7 @@ OBJS_CRYPTO= \
|
|
||||||
aria.o \
|
|
||||||
asn1parse.o \
|
|
||||||
asn1write.o \
|
|
||||||
+ armv8ce_aes.o \
|
|
||||||
base64.o \
|
|
||||||
bignum.o \
|
|
||||||
blowfish.o \
|
|
||||||
--- a/library/version_features.c
|
|
||||||
+++ b/library/version_features.c
|
|
||||||
@@ -624,6 +624,9 @@ static const char * const features[] = {
|
|
||||||
#if defined(MBEDTLS_AESNI_C)
|
|
||||||
"MBEDTLS_AESNI_C",
|
|
||||||
#endif /* MBEDTLS_AESNI_C */
|
|
||||||
+#if defined(MBEDTLS_ARMV8CE_AES_C)
|
|
||||||
+ "MBEDTLS_ARMV8CE_AES_C",
|
|
||||||
+#endif /* MBEDTLS_ARMV8CE_AES_C */
|
|
||||||
#if defined(MBEDTLS_AES_C)
|
|
||||||
"MBEDTLS_AES_C",
|
|
||||||
#endif /* MBEDTLS_AES_C */
|
|
@ -1,228 +0,0 @@
|
|||||||
--- a/include/mbedtls/config.h
|
|
||||||
+++ b/include/mbedtls/config.h
|
|
||||||
@@ -670,14 +670,14 @@
|
|
||||||
*
|
|
||||||
* Enable Output Feedback mode (OFB) for symmetric ciphers.
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_CIPHER_MODE_OFB
|
|
||||||
+//#define MBEDTLS_CIPHER_MODE_OFB
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_CIPHER_MODE_XTS
|
|
||||||
*
|
|
||||||
* Enable Xor-encrypt-xor with ciphertext stealing mode (XTS) for AES.
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_CIPHER_MODE_XTS
|
|
||||||
+//#define MBEDTLS_CIPHER_MODE_XTS
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_CIPHER_NULL_CIPHER
|
|
||||||
@@ -795,20 +795,20 @@
|
|
||||||
* Comment macros to disable the curve and functions for it
|
|
||||||
*/
|
|
||||||
/* Short Weierstrass curves (supporting ECP, ECDH, ECDSA) */
|
|
||||||
-#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_SECP192R1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_SECP224R1_ENABLED
|
|
||||||
#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
|
|
||||||
#define MBEDTLS_ECP_DP_SECP384R1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_SECP521R1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_SECP192K1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_SECP224K1_ENABLED
|
|
||||||
#define MBEDTLS_ECP_DP_SECP256K1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_BP256R1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_BP384R1_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_BP512R1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_BP256R1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_BP384R1_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_BP512R1_ENABLED
|
|
||||||
/* Montgomery curves (supporting ECP) */
|
|
||||||
#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
|
|
||||||
-#define MBEDTLS_ECP_DP_CURVE448_ENABLED
|
|
||||||
+//#define MBEDTLS_ECP_DP_CURVE448_ENABLED
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_ECP_NIST_OPTIM
|
|
||||||
@@ -961,7 +961,7 @@
|
|
||||||
* See dhm.h for more details.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
|
|
||||||
+//#define MBEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
|
||||||
@@ -981,7 +981,7 @@
|
|
||||||
* MBEDTLS_TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA
|
|
||||||
* MBEDTLS_TLS_ECDHE_PSK_WITH_RC4_128_SHA
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
|
||||||
+//#define MBEDTLS_KEY_EXCHANGE_ECDHE_PSK_ENABLED
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
|
|
||||||
@@ -1006,7 +1006,7 @@
|
|
||||||
* MBEDTLS_TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA
|
|
||||||
* MBEDTLS_TLS_RSA_PSK_WITH_RC4_128_SHA
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
|
|
||||||
+//#define MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
|
|
||||||
@@ -1140,7 +1140,7 @@
|
|
||||||
* MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256
|
|
||||||
* MBEDTLS_TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
|
|
||||||
+//#define MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
|
||||||
@@ -1164,7 +1164,7 @@
|
|
||||||
* MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256
|
|
||||||
* MBEDTLS_TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
|
||||||
+//#define MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED
|
|
||||||
@@ -1268,7 +1268,7 @@
|
|
||||||
* This option is only useful if both MBEDTLS_SHA256_C and
|
|
||||||
* MBEDTLS_SHA512_C are defined. Otherwise the available hash module is used.
|
|
||||||
*/
|
|
||||||
-//#define MBEDTLS_ENTROPY_FORCE_SHA256
|
|
||||||
+#define MBEDTLS_ENTROPY_FORCE_SHA256
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_ENTROPY_NV_SEED
|
|
||||||
@@ -1483,14 +1483,14 @@
|
|
||||||
* Uncomment this macro to disable the use of CRT in RSA.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
-//#define MBEDTLS_RSA_NO_CRT
|
|
||||||
+#define MBEDTLS_RSA_NO_CRT
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_SELF_TEST
|
|
||||||
*
|
|
||||||
* Enable the checkup functions (*_self_test).
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_SELF_TEST
|
|
||||||
+//#define MBEDTLS_SELF_TEST
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_SHA256_SMALLER
|
|
||||||
@@ -1761,7 +1761,7 @@
|
|
||||||
* configuration of this extension).
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_SSL_RENEGOTIATION
|
|
||||||
+//#define MBEDTLS_SSL_RENEGOTIATION
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_SSL_SRV_SUPPORT_SSLV2_CLIENT_HELLO
|
|
||||||
@@ -2022,7 +2022,7 @@
|
|
||||||
*
|
|
||||||
* Comment this macro to disable support for truncated HMAC in SSL
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_SSL_TRUNCATED_HMAC
|
|
||||||
+//#define MBEDTLS_SSL_TRUNCATED_HMAC
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT
|
|
||||||
@@ -2201,7 +2201,7 @@
|
|
||||||
*
|
|
||||||
* Comment this to disable run-time checking and save ROM space
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_VERSION_FEATURES
|
|
||||||
+//#define MBEDTLS_VERSION_FEATURES
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3
|
|
||||||
@@ -2550,7 +2550,7 @@
|
|
||||||
* MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256
|
|
||||||
* MBEDTLS_TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_CAMELLIA_C
|
|
||||||
+//#define MBEDTLS_CAMELLIA_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_ARIA_C
|
|
||||||
@@ -2616,7 +2616,7 @@
|
|
||||||
* This module enables the AES-CCM ciphersuites, if other requisites are
|
|
||||||
* enabled as well.
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_CCM_C
|
|
||||||
+//#define MBEDTLS_CCM_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_CERTS_C
|
|
||||||
@@ -2628,7 +2628,7 @@
|
|
||||||
*
|
|
||||||
* This module is used for testing (ssl_client/server).
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_CERTS_C
|
|
||||||
+//#define MBEDTLS_CERTS_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_CHACHA20_C
|
|
||||||
@@ -2741,7 +2741,7 @@
|
|
||||||
* \warning DES is considered a weak cipher and its use constitutes a
|
|
||||||
* security risk. We recommend considering stronger ciphers instead.
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_DES_C
|
|
||||||
+//#define MBEDTLS_DES_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_DHM_C
|
|
||||||
@@ -2906,7 +2906,7 @@
|
|
||||||
* This module adds support for the Hashed Message Authentication Code
|
|
||||||
* (HMAC)-based key derivation function (HKDF).
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_HKDF_C
|
|
||||||
+//#define MBEDTLS_HKDF_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_HMAC_DRBG_C
|
|
||||||
@@ -3219,7 +3219,7 @@
|
|
||||||
*
|
|
||||||
* This module enables abstraction of common (libc) functions.
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_PLATFORM_C
|
|
||||||
+//#define MBEDTLS_PLATFORM_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_POLY1305_C
|
|
||||||
@@ -3295,7 +3295,7 @@
|
|
||||||
* Caller: library/md.c
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_RIPEMD160_C
|
|
||||||
+//#define MBEDTLS_RIPEMD160_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_RSA_C
|
|
||||||
@@ -3506,7 +3506,7 @@
|
|
||||||
*
|
|
||||||
* This module provides run-time version information.
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_VERSION_C
|
|
||||||
+//#define MBEDTLS_VERSION_C
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \def MBEDTLS_X509_USE_C
|
|
||||||
@@ -3616,7 +3616,7 @@
|
|
||||||
* Module: library/xtea.c
|
|
||||||
* Caller:
|
|
||||||
*/
|
|
||||||
-#define MBEDTLS_XTEA_C
|
|
||||||
+//#define MBEDTLS_XTEA_C
|
|
||||||
|
|
||||||
/** \} name SECTION: mbed TLS modules */
|
|
||||||
|
|
@ -30,6 +30,7 @@ PKG_BUILD_PARALLEL:=1
|
|||||||
PKG_INSTALL:=1
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
|
|
||||||
define Package/musl-fts
|
define Package/musl-fts
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
@ -43,6 +44,7 @@ define Package/musl-fts/description
|
|||||||
The musl-fts package implements the fts(3) functions fts_open, fts_read, fts_children, fts_set and fts_close, which are missing in musl libc.
|
The musl-fts package implements the fts(3) functions fts_open, fts_read, fts_children, fts_set and fts_close, which are missing in musl libc.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
HOST_CONFIGURE_ARGS += --disable-shared --with-pic
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
@ -58,3 +60,4 @@ define Package/musl-fts/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,musl-fts))
|
$(eval $(call BuildPackage,musl-fts))
|
||||||
|
$(eval $(call HostBuild))
|
||||||
|
@ -8,16 +8,17 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nettle
|
PKG_NAME:=nettle
|
||||||
PKG_VERSION:=3.7.3
|
PKG_VERSION:=3.8.1
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
PKG_USE_MIPS16:=0
|
PKG_USE_MIPS16:=0
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=@GNU/nettle
|
PKG_SOURCE_URL:=@GNU/nettle
|
||||||
PKG_HASH:=661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0
|
PKG_HASH:=364f3e2b77cd7dcde83fd7c45219c834e54b0c75e428b6f894a23d12dd41cbfe
|
||||||
|
|
||||||
PKG_LICENSE:=GPL-2.0-or-later
|
PKG_LICENSE:=GPL-2.0-or-later
|
||||||
PKG_LICENSE_FILES:=COPYING
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
PKG_CPE_ID:=cpe:/a:nettle_project:nettle
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS := CONFIG_LIBNETTLE_MINI
|
PKG_CONFIG_DEPENDS := CONFIG_LIBNETTLE_MINI
|
||||||
@ -44,7 +45,8 @@ CONFIGURE_ARGS += \
|
|||||||
--enable-fat \
|
--enable-fat \
|
||||||
--disable-openssl \
|
--disable-openssl \
|
||||||
--disable-documentation \
|
--disable-documentation \
|
||||||
--enable-static
|
--enable-static \
|
||||||
|
$(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--disable-assembler))
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBNETTLE_MINI),y)
|
ifeq ($(CONFIG_LIBNETTLE_MINI),y)
|
||||||
CONFIGURE_ARGS += --enable-mini-gmp
|
CONFIGURE_ARGS += --enable-mini-gmp
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -4661,6 +4661,7 @@ $as_echo_n "checking build system compil
|
@@ -4704,6 +4704,7 @@ $as_echo_n "checking build system compil
|
||||||
# remove anything that might look like compiler output to our "||" expression
|
# remove anything that might look like compiler output to our "||" expression
|
||||||
rm -f conftest* a.out b.out a.exe a_out.exe
|
rm -f conftest* a.out b.out a.exe a_out.exe
|
||||||
cat >conftest.c <<EOF
|
cat >conftest.c <<EOF
|
||||||
@ -8,7 +8,7 @@
|
|||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -4693,6 +4694,7 @@ $as_echo_n "checking build system compil
|
@@ -4736,6 +4737,7 @@ $as_echo_n "checking build system compil
|
||||||
# remove anything that might look like compiler output to our "||" expression
|
# remove anything that might look like compiler output to our "||" expression
|
||||||
rm -f conftest* a.out b.out a.exe a_out.exe
|
rm -f conftest* a.out b.out a.exe a_out.exe
|
||||||
cat >conftest.c <<EOF
|
cat >conftest.c <<EOF
|
||||||
@ -16,7 +16,7 @@
|
|||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -4729,6 +4731,7 @@ $as_echo_n "checking build system compil
|
@@ -4772,6 +4774,7 @@ $as_echo_n "checking build system compil
|
||||||
# remove anything that might look like compiler output to our "||" expression
|
# remove anything that might look like compiler output to our "||" expression
|
||||||
rm -f conftest* a.out b.out a.exe a_out.exe
|
rm -f conftest* a.out b.out a.exe a_out.exe
|
||||||
cat >conftest.c <<EOF
|
cat >conftest.c <<EOF
|
||||||
@ -24,7 +24,7 @@
|
|||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
@@ -4779,6 +4782,7 @@ else
|
@@ -4822,6 +4825,7 @@ else
|
||||||
gmp_cv_prog_exeext_for_build="$EXEEXT"
|
gmp_cv_prog_exeext_for_build="$EXEEXT"
|
||||||
else
|
else
|
||||||
cat >conftest.c <<EOF
|
cat >conftest.c <<EOF
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=pcre
|
PKG_NAME:=pcre
|
||||||
PKG_VERSION:=8.44
|
PKG_VERSION:=8.45
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
||||||
PKG_HASH:=19108658b23b3ec5058edc9f66ac545ea19f9537234be1ec62b714c84399366d
|
PKG_HASH:=4dae6fdcd2bb0bb6c37b5f97c33c2be954da743985369cddac3546e3218bffb8
|
||||||
|
|
||||||
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
@ -24,6 +24,7 @@ PKG_INSTALL:=1
|
|||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:=\
|
PKG_CONFIG_DEPENDS:=\
|
||||||
|
CONFIG_PACKAGE_libpcrecpp \
|
||||||
CONFIG_PCRE_JIT_ENABLED
|
CONFIG_PCRE_JIT_ENABLED
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
@ -54,14 +55,20 @@ define Package/libpcre32
|
|||||||
TITLE:=A Perl Compatible Regular Expression library (32bit support)
|
TITLE:=A Perl Compatible Regular Expression library (32bit support)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libpcrecpp
|
||||||
|
$(call Package/libpcre/default)
|
||||||
|
TITLE:=C++ wrapper for Perl Compatible Regular Expression library
|
||||||
|
DEPENDS:=+libpcre +libstdcpp
|
||||||
|
endef
|
||||||
|
|
||||||
HOST_CONFIGURE_ARGS += \
|
HOST_CONFIGURE_ARGS += \
|
||||||
|
--disable-shared \
|
||||||
--enable-utf8 \
|
--enable-utf8 \
|
||||||
--enable-unicode-properties \
|
--enable-unicode-properties \
|
||||||
--enable-pcre16 \
|
--enable-pcre16 \
|
||||||
--with-match-limit-recursion=16000 \
|
--with-match-limit-recursion=16000 \
|
||||||
--disable-cpp
|
--enable-cpp \
|
||||||
|
--with-pic
|
||||||
TARGET_CFLAGS += $(FPIC)
|
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--enable-utf8 \
|
--enable-utf8 \
|
||||||
@ -70,7 +77,8 @@ CONFIGURE_ARGS += \
|
|||||||
--enable-pcre32 \
|
--enable-pcre32 \
|
||||||
$(if $(CONFIG_PCRE_JIT_ENABLED),--enable-jit,--disable-jit) \
|
$(if $(CONFIG_PCRE_JIT_ENABLED),--enable-jit,--disable-jit) \
|
||||||
--with-match-limit-recursion=16000 \
|
--with-match-limit-recursion=16000 \
|
||||||
-disable-cpp
|
--$(if $(CONFIG_PACKAGE_libpcrecpp),en,dis)able-cpp \
|
||||||
|
--with-pic
|
||||||
|
|
||||||
MAKE_FLAGS += \
|
MAKE_FLAGS += \
|
||||||
CFLAGS="$(TARGET_CFLAGS)"
|
CFLAGS="$(TARGET_CFLAGS)"
|
||||||
@ -109,7 +117,13 @@ define Package/libpcre32/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre32.so* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcre32.so* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/libpcrecpp/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcrecpp.so.* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libpcre))
|
$(eval $(call BuildPackage,libpcre))
|
||||||
$(eval $(call BuildPackage,libpcre16))
|
$(eval $(call BuildPackage,libpcre16))
|
||||||
$(eval $(call BuildPackage,libpcre32))
|
$(eval $(call BuildPackage,libpcre32))
|
||||||
|
$(eval $(call BuildPackage,libpcrecpp))
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
|
@ -8,15 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=popt
|
PKG_NAME:=popt
|
||||||
PKG_VERSION:=1.16
|
PKG_VERSION:=1.19
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:= \
|
PKG_SOURCE_URL:=http://ftp.rpm.org/popt/releases/popt-1.x/
|
||||||
http://distfiles.gentoo.org/distfiles/ \
|
PKG_HASH:=c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9
|
||||||
http://distcache.freebsd.org/ports-distfiles/ \
|
|
||||||
http://rpm5.org/files/popt/
|
|
||||||
PKG_HASH:=e728ed296fe9f069a0e005003c3d6b2dde3d9cad453422a10d6558616d304cc8
|
|
||||||
PKG_LICENSE:=MIT
|
PKG_LICENSE:=MIT
|
||||||
|
|
||||||
PKG_FIXUP:=autoreconf
|
PKG_FIXUP:=autoreconf
|
||||||
@ -33,7 +30,7 @@ define Package/libpopt
|
|||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:=A command line option parsing library
|
TITLE:=A command line option parsing library
|
||||||
URL:=http://rpm5.org/files/popt/
|
URL:=https://github.com/rpm-software-management/popt
|
||||||
ABI_VERSION:=0
|
ABI_VERSION:=0
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
From 19d21b2d9e5aea5f73b1709b3c7803f920471146 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nick Hainke <vincent@systemli.org>
|
||||||
|
Date: Sun, 25 Sep 2022 11:52:29 +0200
|
||||||
|
Subject: [PATCH] configure.ac: remove require gettext version
|
||||||
|
|
||||||
|
This breaks compilation with OpenWrt:
|
||||||
|
./configure: line 13059: syntax error near unexpected token `0.19.8'
|
||||||
|
./configure: line 13059: `AM_GNU_GETTEXT_REQUIRE_VERSION(0.19.8)'
|
||||||
|
|
||||||
|
Fixes: bf8dd64e8aa0 ("Update gettext autoconf usage")
|
||||||
|
|
||||||
|
Signed-off-by: Nick Hainke <vincent@systemli.org>
|
||||||
|
---
|
||||||
|
configure.ac | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -53,7 +53,6 @@ AC_SEARCH_LIBS([setreuid], [ucb])
|
||||||
|
AC_CHECK_FUNCS([getuid geteuid iconv mtrace secure_getenv __secure_getenv setreuid setuid stpcpy strerror vasprintf srandom glob_pattern_p mbsrtowcs])
|
||||||
|
|
||||||
|
AM_GNU_GETTEXT_VERSION([0.19.8])
|
||||||
|
-AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.8])
|
||||||
|
AM_GNU_GETTEXT([external])
|
||||||
|
AM_ICONV_LINK
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user