LingYun Studio embeded system framwork software, such as thirdparty build shell and lingyun library
guowenxue
2024-08-19 2625606d4adb70709af454831a4d19c573b543f6
update booster source code
3 files modified
5 files deleted
3 files renamed
1730 ■■■■■ changed files
booster/comport.c 2 ●●● patch | view | raw | blame | history
booster/linux_list.h 723 ●●●●● patch | view | raw | blame | history
booster/list.h 1 ●●●● patch | view | raw | blame | history
booster/makefile 20 ●●●●● patch | view | raw | blame | history
booster/test/gpio-scripts/pinctrl-igkboard 144 ●●●●● patch | view | raw | blame | history
booster/test/gpio-scripts/pinloop.sh 42 ●●●●● patch | view | raw | blame | history
booster/test/i2c_sht20.c 257 ●●●●● patch | view | raw | blame | history
booster/test/spidev_test.c 520 ●●●●● patch | view | raw | blame | history
booster/testcase/comport.c patch | view | raw | blame | history
booster/testcase/logger.c patch | view | raw | blame | history
booster/testcase/makefile 21 ●●●● patch | view | raw | blame | history
booster/comport.c
@@ -425,7 +425,7 @@
        if( bytes >= buf_size )
            break;
        /* try to read data in 1ms again, if no data arrive it will break */
        /* try to read data in 10ms again, if no data arrive it will break */
        to.tv_sec = 0;
        to.tv_usec = 10000;
        to_ptr = &to;
booster/linux_list.h
File was deleted
booster/list.h
@@ -16,7 +16,6 @@
#include <linux/stddef.h>
/**
 * container_of - cast a member of a structure out to the containing structure
 * @ptr:    the pointer to the member.
booster/makefile
@@ -13,25 +13,23 @@
PWD=$(shell pwd )
BUILD_ARCH=$(shell uname -m)
ifneq ($(findstring $(BUILD_ARCH), "x86_64" "i386"),)
    CROSS_COMPILE?=arm-linux-gnueabihf-
endif
#CROSS_COMPILE=
#CROSS_COMPILE=arm-linux-gnueabihf-
LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )
CFLAGS+=-D_GNU_SOURCE
all: clean
    @rm -f *.o
    @${CROSS_COMPILE}gcc ${CFLAGS} -I${TOPDIR} -c *.c
    @${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
    ${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
clean:
    @rm -f *.o
    @rm -f *.a
    @rm -f *.o *.a
test:
    make -C testcase CROSS_COMPILE=${CROSS_COMPILE}
distclean:
    @make clean
    @make clean -C testcase
.PHONY: clean  test distclean
booster/test/gpio-scripts/pinctrl-igkboard
File was deleted
booster/test/gpio-scripts/pinloop.sh
File was deleted
booster/test/i2c_sht20.c
File was deleted
booster/test/spidev_test.c
File was deleted
booster/testcase/comport.c
booster/testcase/logger.c
booster/testcase/makefile
File was renamed from booster/test/makefile
@@ -13,28 +13,13 @@
#********************************************************************************/
PWD=$(shell pwd)
LIB_PATH=$(shell dirname ${PWD})
LIB_NAME=$(shell basename ${LIB_PATH})
INSTPATH=/tftp
#ARCH ?= i386
#ARCH?=arm926t
ARCH?=arm920t
#LINK_MODE=STATIC
MODE=PRODUCTION
DEBUG=1
INSTPATH=/tftp
CROSS_COMPILE?=arm-linux-gnueabihf-
CC=${CROSS_COMPILE}gcc
export CC=${CROSS_COMPILE}gcc
export CXX=${CROSS_COMPILE}g++
export AR=${CROSS_COMPILE}ar
export AS=${CROSS_COMPILE}as
export RANLIB=${CROSS_COMPILE}ranlib
export STRIP=${CROSS_COMPILE}strip
LIB_PATH=$(shell dirname ${PWD})
LIB_NAME=$(shell basename ${LIB_PATH})
SRCS = $(wildcard ${VPATH}/*.c)
OBJS = $(patsubst %.c,%.o,$(SRCS))