mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
Change binary toolchain configuration, so
that the options become visible just below the config, instead of at bottom of screen Create a more useful default as toolchain path. Allow generation of a script which sets up paths to a binary toolchain generated by buildroot.
This commit is contained in:
parent
c1bb025dff
commit
59f084017e
@ -26,6 +26,8 @@ config BR2_TOOLCHAIN_SOURCE
|
|||||||
default y if BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_EXTERNAL_SOURCE
|
default y if BR2_TOOLCHAIN_BUILDROOT || BR2_TOOLCHAIN_EXTERNAL_SOURCE
|
||||||
default n if BR2_TOOLCHAIN_EXTERNAL
|
default n if BR2_TOOLCHAIN_EXTERNAL
|
||||||
|
|
||||||
|
source "toolchain/external-toolchain/Config.in.2"
|
||||||
|
|
||||||
source "target/device/Config.in.toolchain"
|
source "target/device/Config.in.toolchain"
|
||||||
|
|
||||||
source "toolchain/Config.in.1"
|
source "toolchain/Config.in.1"
|
||||||
@ -38,6 +40,6 @@ source "toolchain/gdb/Config.in"
|
|||||||
comment "Common Toolchain Options"
|
comment "Common Toolchain Options"
|
||||||
|
|
||||||
source "toolchain/Config.in.2"
|
source "toolchain/Config.in.2"
|
||||||
source "toolchain/external-toolchain/Config.in.2"
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -3,9 +3,12 @@
|
|||||||
if BR2_TOOLCHAIN_EXTERNAL
|
if BR2_TOOLCHAIN_EXTERNAL
|
||||||
config BR2_TOOLCHAIN_EXTERNAL_PATH
|
config BR2_TOOLCHAIN_EXTERNAL_PATH
|
||||||
string "External toolchain path"
|
string "External toolchain path"
|
||||||
default "/path/to/staging_dir/usr"
|
default "$(GCCROOT)"
|
||||||
help
|
help
|
||||||
Path to where the external toolchain is installed.
|
Path to where the external toolchain is installed.
|
||||||
|
Either define GCCROOT in your environment
|
||||||
|
or an absolute path like:
|
||||||
|
"/path/to/staging_dir/usr"
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
||||||
string "External toolchain prefix"
|
string "External toolchain prefix"
|
||||||
|
@ -60,3 +60,4 @@ $(TARGET_DIR)/lib/$(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_LIB_C))):
|
|||||||
$(call copy_toolchain_lib_root, $$libs, /lib, $(BR2_TOOLCHAIN_EXTERNAL_STRIP)); \
|
$(call copy_toolchain_lib_root, $$libs, /lib, $(BR2_TOOLCHAIN_EXTERNAL_STRIP)); \
|
||||||
done
|
done
|
||||||
$(call copy_toolchain_sysroot)
|
$(call copy_toolchain_sysroot)
|
||||||
|
|
||||||
|
@ -498,5 +498,23 @@ gcc-status:
|
|||||||
@echo GCC_PATCH_DIR=$(GCC_PATCH_DIR)
|
@echo GCC_PATCH_DIR=$(GCC_PATCH_DIR)
|
||||||
@echo GCC_SITE=$(GCC_SITE)
|
@echo GCC_SITE=$(GCC_SITE)
|
||||||
|
|
||||||
|
GCCSCRIPT=$(ARCH)-uclibc-gcc-$(BR2_GCC_VERSION).sh
|
||||||
|
|
||||||
|
gccscript:
|
||||||
|
@rm -f $(GCCSCRIPT)
|
||||||
|
@rm -f gcc.sh
|
||||||
|
@echo "#!/bin/sh" > $(GCCSCRIPT)
|
||||||
|
@echo "# $(ARCH) cross compiler toolchain created $(DATE)" >> $(GCCSCRIPT)
|
||||||
|
@echo "# gcc-$(BR2_GCC_VERSION)" >> $(GCCSCRIPT)
|
||||||
|
@echo "# binutils-$(BR2_BINUTILS_VERSION)" >> $(GCCSCRIPT)
|
||||||
|
@echo "# uClibc-$(UCLIBC_VER)" >> $(GCCSCRIPT)
|
||||||
|
@echo "export GCCROOT=$(BR2_STAGING_DIR)/usr" >> $(GCCSCRIPT)
|
||||||
|
@echo "export PATH=\$$GCCROOT/bin:\$$PATH" >> $(GCCSCRIPT)
|
||||||
|
@echo "export GCCPREFIX=$(ARCH)-linux" >> $(GCCSCRIPT)
|
||||||
|
@echo "export CROSS_COMPILE=\$$GCCPREFIX-" >> $(GCCSCRIPT)
|
||||||
|
@chmod a+x $(GCCSCRIPT)
|
||||||
|
@ln -s $(GCCSCRIPT) gcc.sh
|
||||||
|
@echo "$(GCCSCRIPT) created"
|
||||||
|
@more $(GCCSCRIPT)
|
||||||
endif
|
endif
|
||||||
# gcc-4.x only
|
# gcc-4.x only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user