LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-08-21 d48b80fc277cb123738461b6125a58ffe9923019
update cross compiler
11 files modified
1 files added
59 ■■■■■ changed files
3rdparty/build.sh 15 ●●●●● patch | view | raw | blame | history
3rdparty/libgpiod/build.sh 2 ●●● patch | view | raw | blame | history
3rdparty/libxml2/build.sh 2 ●●● patch | view | raw | blame | history
booster/makefile 2 ●●● patch | view | raw | blame | history
hal/api/libgpiod/build.sh 2 ●●● patch | view | raw | blame | history
hal/api/makefile 2 ●●● patch | view | raw | blame | history
hal/lcd/drm/makefile 2 ●●● patch | view | raw | blame | history
hal/lcd/fb/makefile 2 ●●● patch | view | raw | blame | history
hal/lcd/lvgl/libs_lvgl/build.sh 2 ●●● patch | view | raw | blame | history
hal/lcd/lvgl/makefile 2 ●●● patch | view | raw | blame | history
hal/modules/makefile 2 ●●● patch | view | raw | blame | history
update.sh 24 ●●●●● patch | view | raw | blame | history
3rdparty/build.sh
@@ -1,17 +1,5 @@
#!/bin/bash
REP_CROSSTOOL=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
REP_LYFTP=http://master.weike-iot.com:2211/src/
function replace_crosstool()
{
    for f in `find -iname "build*.sh"`
    do
        sed -i -e "s|^CROSSTOOL=.*|CROSSTOOL=$REP_CROSSTOOL|g" $f
        sed -i -e "s|^LYFTP_SRC=.*|LYFTP_SRC=$REP_LYFTP|g" $f
    done
}
function do_compile
{
    for dir in `ls`
@@ -24,8 +12,5 @@
    done
}
#replace_crosstool
do_compile
3rdparty/libgpiod/build.sh
@@ -12,7 +12,7 @@
LIB_URL=$LY_FTP
# Cross compiler for cross compile on Linux server
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
# compile jobs
JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
3rdparty/libxml2/build.sh
@@ -12,7 +12,7 @@
LIB_URL=$LYFTP_SRC
# Cross compiler for cross compile on Linux server
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
# compile jobs
JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
booster/makefile
@@ -13,7 +13,7 @@
PWD=$(shell pwd )
#CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
LIBNAME=$(shell basename ${PWD} )
hal/api/libgpiod/build.sh
@@ -12,7 +12,7 @@
LIB_URL=$LY_FTP
# Cross compiler for cross compile on Linux server
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
# compile jobs
JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
hal/api/makefile
@@ -15,7 +15,7 @@
PWD=$(shell pwd)
INSTPATH=/tftp
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
CC=${CROSS_COMPILE}gcc
LDFLAGS += -lm
hal/lcd/drm/makefile
@@ -11,7 +11,7 @@
PRJ_PATH=$(shell pwd)
APP_NAME = drm_test
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
# C source files in top-level directory
SRCFILES = $(wildcard *.c)
hal/lcd/fb/makefile
@@ -15,7 +15,7 @@
PWD=$(shell pwd)
INSTPATH=/tftp
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
CC=${CROSS_COMPILE}gcc
SRCS = $(wildcard ${VPATH}/*.c)
hal/lcd/lvgl/libs_lvgl/build.sh
@@ -11,7 +11,7 @@
LIBS_DIR="lvgl lv_drivers lv_demos"
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
if [ $# == 1 ] ; then
   CROSS_COMPILE=$1
fi
hal/lcd/lvgl/makefile
@@ -1,5 +1,5 @@
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
CC=${CROSS_COMPILE}gcc
CFLAGS = -Wall -Wshadow -Wundef -Wmaybe-uninitialized
hal/modules/makefile
@@ -15,7 +15,7 @@
PWD=$(shell pwd)
INSTPATH=/tftp
CROSS_COMPILE=arm-linux-gnueabihf-
CROSS_COMPILE=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
CC=${CROSS_COMPILE}gcc
LDFLAGS += -lm
update.sh
New file
@@ -0,0 +1,24 @@
#!/bin/bash
#REP_CROSSTOOL=arm-linux-gnueabihf-
REP_CROSSTOOL=/opt/gcc-aarch32-10.3-2021.07/bin/arm-none-linux-gnueabihf-
REP_LYFTP=http://master.weike-iot.com:2211/src/
function replace_crosstool()
{
    for f in `find -iname "build*.sh"`
    do
        sed -i -e "s|^CROSSTOOL=.*|CROSSTOOL=$REP_CROSSTOOL|g" $f
        sed -i -e "s|^CROSS_COMPILE=.*|CROSS_COMPILE=$REP_CROSSTOOL|g" $f
        sed -i -e "s|^LYFTP_SRC=.*|LYFTP_SRC=$REP_LYFTP|g" $f
    done
    for f in `find -iname "makefile"`
    do
        sed -i -e "s|^CROSS_COMPILE=.*|CROSS_COMPILE=$REP_CROSSTOOL|g" $f
    done
}
replace_crosstool