The following attributes are moved to OS specific implementations:
- Manufacturer
- ManufacturerOUI
- SoftwareVersion
- SerialNumber
- ProductClass
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit fixes '-lssl' and '-lmbedtls' being linked even when they
haven't been selected by --enable-libmbedtls or --enable-libopenssl
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
When code is build with --enable-generic-openwrt,
the tr181 implementations from dmtree/tr181/.*-openwrt.c are used.
Otherwise for IOPSYS-WRT, dmtree/tr181/*-iopsyswrt.c sources are used.
Note that all functions that have OS specific handlers, are prefixed
with 'os__' and are implemented in their OS specific file.
Functions that are only available in IOPSYS-WRT are prefixed with
'os_iopsys_*'.
More OpenWrt OS impelementations will follow in future commits.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
Fixes snprintf truncated output compiler warnings.
Example:
--
../dmentrylibrary.c:31:38: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
31 | snprintf(buf, sizeof(buf), "%s/%s", folder_path, entry->d_name);
| ^
../dmentrylibrary.c:31:5: note: ‘snprintf’ output 2 or more bytes (assuming 257) into a destination of size 256
31 | snprintf(buf, sizeof(buf), "%s/%s", folder_path, entry->d_name);
--
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit makes all symbols that are not part of the API Interface,
or used only in the object files where they are defined, static.
Causing the following benefits:
- The compiler can resolve functions for better performance
- The library size is decreased
NOTE: Spec file generators need to be adjusted for newer spec's to not do the same mistakes again
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This option allows selecting between a build with IOPSYS WRT features,
like the "router.*" ubus objects and a generic OpenWrt.
When GENERIC_OPENWRT is defined, only features that are available on a
generic openwrt build should be used.
This option is disabled by default.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
_XOPEN_SOURCE is included by _GNU_SOURCE.
This fixes redefinition errors of _XOPEN_SOURCE when the libc
implementations define it because of _GNU_SOURCE.
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>