Initial Commit
- initial default booting image
This commit is contained in:
73
package/sqlite/Config.in
Normal file
73
package/sqlite/Config.in
Normal file
@@ -0,0 +1,73 @@
|
||||
config BR2_PACKAGE_SQLITE
|
||||
bool "sqlite"
|
||||
help
|
||||
SQLite is a small C library that implements a
|
||||
self-contained, embeddable, zero-configuration SQL database
|
||||
engine.
|
||||
|
||||
https://www.sqlite.org/
|
||||
|
||||
if BR2_PACKAGE_SQLITE
|
||||
|
||||
config BR2_PACKAGE_SQLITE_STAT4
|
||||
bool "Additional query optimizations (stat4)"
|
||||
help
|
||||
Adds additional logic to the ANALYZE command and to the
|
||||
query planner that can help SQLite to choose a better query
|
||||
plan under certain situations.
|
||||
|
||||
config BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA
|
||||
bool "Enable convenient access to meta-data about tables and queries"
|
||||
help
|
||||
When this option is defined there are some additional APIs
|
||||
enabled to access meta-data about tables and queries (see
|
||||
https://sqlite.org/compile.html).
|
||||
|
||||
config BR2_PACKAGE_SQLITE_ENABLE_FTS3
|
||||
bool "Enable version 3 of the full-text search engine"
|
||||
help
|
||||
When this option is defined in the amalgamation (see
|
||||
http://www.sqlite.org/amalgamation.html), version 3 of the
|
||||
full-text search engine is added to the build automatically.
|
||||
|
||||
config BR2_PACKAGE_SQLITE_ENABLE_RTREE
|
||||
bool "Enable the RTREE extension for SQLite"
|
||||
help
|
||||
When this option is defined in the amalgamation, the RTREE
|
||||
extension is added to the build automatically.
|
||||
|
||||
config BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
bool "Enable sqlite3_unlock_notify() interface"
|
||||
help
|
||||
This option enables the sqlite3_unlock_notify() interface
|
||||
and its accosiated functionality. See the documentation
|
||||
http://www.sqlite.org/unlock_notify.html for additional
|
||||
information.
|
||||
|
||||
config BR2_PACKAGE_SQLITE_SECURE_DELETE
|
||||
bool "Set the secure_delete pragma on by default"
|
||||
help
|
||||
This compile-time option changes the default settings of the
|
||||
secure_delete pragma. When this option is not used,
|
||||
secure_delete defaults to off. When this option is present,
|
||||
secure_delete defaults to on.
|
||||
|
||||
The secure_delete setting causes deleted content to be
|
||||
overwritten with zeros. There is a small performance penalty
|
||||
for this since additional I/O must occur. On the other hand,
|
||||
secure_delete can prevent sensitive information from
|
||||
lingering in unused parts of the database file after it has
|
||||
allegedly been deleted. See the documentation on the
|
||||
http://www.sqlite.org/pragma.html#pragma_secure_delete for
|
||||
additional information.
|
||||
|
||||
config BR2_PACKAGE_SQLITE_NO_SYNC
|
||||
bool "Disable fsync"
|
||||
help
|
||||
By default SQLite forces all database transactions to
|
||||
storage immediately using fsync() to protect against data
|
||||
loss in case of power failure. This option turns this
|
||||
behavior off resulting in higher performance especially when
|
||||
using slow flash storage.
|
||||
|
||||
endif
|
||||
3
package/sqlite/sqlite.hash
Normal file
3
package/sqlite/sqlite.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c sqlite-autoconf-3530400.tar.gz
|
||||
sha256 66e056b6e8687f32af30d5187611b98b12a8f46f07aaf62f43585f276e8f0ac9 tea/license.terms
|
||||
126
package/sqlite/sqlite.mk
Normal file
126
package/sqlite/sqlite.mk
Normal file
@@ -0,0 +1,126 @@
|
||||
################################################################################
|
||||
#
|
||||
# sqlite
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SQLITE_VERSION = 3.53.4
|
||||
SQLITE_TAR_VERSION = 3530400
|
||||
SQLITE_SOURCE = sqlite-autoconf-$(SQLITE_TAR_VERSION).tar.gz
|
||||
SQLITE_SITE = https://www.sqlite.org/2026
|
||||
SQLITE_LICENSE = blessing
|
||||
SQLITE_LICENSE_FILES = tea/license.terms
|
||||
SQLITE_CPE_ID_VENDOR = sqlite
|
||||
SQLITE_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_STAT4),y)
|
||||
SQLITE_CFLAGS += -DSQLITE_ENABLE_STAT4
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_COLUMN_METADATA),y)
|
||||
SQLITE_CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_RTREE),y)
|
||||
SQLITE_CFLAGS += -DSQLITE_ENABLE_RTREE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y)
|
||||
SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE),y)
|
||||
SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_NO_SYNC),y)
|
||||
SQLITE_CFLAGS += -DSQLITE_NO_SYNC
|
||||
endif
|
||||
|
||||
# Building with Microblaze Gcc 4.9 makes compiling to hang.
|
||||
# Work around using -O0
|
||||
ifeq ($(BR2_microblaze):$(BR2_TOOLCHAIN_GCC_AT_LEAST_5),y:)
|
||||
SQLITE_CFLAGS += $(TARGET_CFLAGS) -O0
|
||||
else ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_104028),y)
|
||||
SQLITE_CFLAGS += $(TARGET_CFLAGS) -O0
|
||||
else
|
||||
# fallback to standard -O3 when -Ofast is present to avoid -ffast-math
|
||||
SQLITE_CFLAGS += $(subst -Ofast,-O3,$(TARGET_CFLAGS))
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy)
|
||||
SQLITE_DEPENDENCIES += ncurses readline
|
||||
SQLITE_CFLAGS += -DHAVE_READLINE=1
|
||||
SQLITE_LDFLAGS += -lreadline -lncurses
|
||||
else ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_LIBEDIT),yy)
|
||||
SQLITE_DEPENDENCIES += ncurses libedit
|
||||
SQLITE_CFLAGS += -DHAVE_EDITLINE=1
|
||||
SQLITE_LDFLAGS += -ledit -lncurses
|
||||
else
|
||||
SQLITE_CONF_OPTS += --disable-readline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y)
|
||||
SQLITE_CONF_OPTS += --fts3
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
SQLITE_CONF_OPTS += --disable-shared
|
||||
endif
|
||||
|
||||
SQLITE_CONF_ENV = CFLAGS="$(SQLITE_CFLAGS)" LDFLAGS="$(SQLITE_LDFLAGS)"
|
||||
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101971
|
||||
define SQLITE_FIX_MAKEFILE
|
||||
chmod +w $(@D)/Makefile
|
||||
sed -i "s/-fPIC//" $(@D)/Makefile
|
||||
endef
|
||||
|
||||
define SQLITE_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) \
|
||||
$(if $(BR2_INSTALL_LIBSTDCPP),,CXX=false) \
|
||||
$(SQLITE_CONF_ENV) ./configure \
|
||||
--prefix=/usr \
|
||||
--host="$(GNU_TARGET_NAME)" \
|
||||
--build="$(GNU_HOST_NAME)" \
|
||||
--sysroot="$(STAGING_DIR)" \
|
||||
--disable-rpath \
|
||||
--soname=legacy \
|
||||
$(SQLITE_CONF_OPTS) \
|
||||
)
|
||||
$(if $(BR2_m68k_cf),$(SQLITE_FIX_MAKEFILE))
|
||||
endef
|
||||
|
||||
define SQLITE_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define SQLITE_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(STAGING_DIR)" -C $(@D) install
|
||||
endef
|
||||
|
||||
define SQLITE_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" -C $(@D) install
|
||||
endef
|
||||
|
||||
define HOST_SQLITE_CONFIGURE_CMDS
|
||||
(cd $(@D); $(HOST_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--host="$(GNU_HOST_NAME)" \
|
||||
--build="$(GNU_HOST_NAME)" \
|
||||
--sysroot="$(HOST_DIR)" \
|
||||
--disable-readline \
|
||||
)
|
||||
endef
|
||||
|
||||
define HOST_SQLITE_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_SQLITE_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) DESTDIR="$(HOST_DIR)" -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user