mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 13:11:27 +00:00
Merge branch 'svn-trunk'
This commit is contained in:
24
README.cross-compilation
Normal file
24
README.cross-compilation
Normal file
@@ -0,0 +1,24 @@
|
||||
Cross-compilation is the process of compiling code for one architecture (often
|
||||
called the target) on a different system, usually called the host.
|
||||
Cross-compilation of SCST is possible as follows:
|
||||
1. Download the Linux kernel source code and also the SCST source code.
|
||||
2. Install the appropriate cross-compiler, e.g. as follows:
|
||||
|
||||
zypper install cross-arm-gcc9
|
||||
|
||||
3. Store the cross-compilation prefix and architecture names in the
|
||||
CROSS_COMPILE and ARCH environment variables, e.g. as follows:
|
||||
|
||||
export CROSS_COMPILE=/usr/bin/arm-suse-linux-gnueabi-
|
||||
export ARCH=arm
|
||||
|
||||
4. Build the Linux kernel.
|
||||
|
||||
cd $HOME/software/linux-kernel
|
||||
make
|
||||
|
||||
5. Cross-compile SCST using any of the supported build methods. An example:
|
||||
|
||||
export KDIR=$HOME/software/linux-kernel
|
||||
cd scst.git
|
||||
make rpm
|
||||
@@ -46,7 +46,9 @@ ifeq ($(KVER),)
|
||||
make -s -C $(KDIR) kernelversion))
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -34,7 +34,9 @@ ifeq ($(KVER),)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -35,7 +35,9 @@ ifeq ($(KVER),)
|
||||
make -s -C $(KDIR) kernelversion))
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -44,7 +44,9 @@ ifeq ($(KVER),)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -34,7 +34,9 @@ ifeq ($(KVER),)
|
||||
make -s -C $(KDIR) kernelversion))
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -43,7 +43,9 @@ ifeq ($(KVER),)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -45,7 +45,9 @@ ifeq ($(KVER),)
|
||||
make -s -C $(KDIR) kernelversion))
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -39,7 +39,9 @@ ifeq ($(KVER),)
|
||||
make -s -C $(KDIR) kernelversion))
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -20,7 +20,9 @@ ifeq ($(KVER),)
|
||||
make -s -C $(KDIR) kernelversion))
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
@@ -22,7 +22,9 @@ ifeq ($(KVER),)
|
||||
endif
|
||||
endif
|
||||
else
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
ifeq ($(KDIR),)
|
||||
KDIR := /lib/modules/$(KVER)/build
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(INSTALL_MOD_PATH),)
|
||||
|
||||
Reference in New Issue
Block a user