mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-13 07:42:14 +00:00
Update ssc338q_fpv_openipc
This commit is contained in:
12
builder.sh
12
builder.sh
@@ -10,10 +10,7 @@
|
||||
# Copy Kernel and Rootfs to Archive
|
||||
# Copy Kernel and Rootfs to TFTP server
|
||||
|
||||
RELEASE=""
|
||||
DEVICE="$1"
|
||||
TFTP_STORAGE="root@172.17.32.17:/mnt/bigger-2tb/Rotator/TFTP"
|
||||
|
||||
BUILDER_DIR=$(pwd)
|
||||
FIRMWARE_DIR="${BUILDER_DIR}/openipc"
|
||||
TIMESTAMP=$(date +"%Y%m%d%H%M")
|
||||
@@ -60,7 +57,7 @@ copy_to_archive() {
|
||||
${FIRMWARE_DIR}/output/images/openipc.*.tgz \
|
||||
${BUILDER_DIR}/archive/${DEVICE}/${TIMESTAMP}
|
||||
|
||||
if [ -f "${FIRMWARE_DIR}/output/images/autoupdate-kernel.img" ] ; then
|
||||
if [ -f "${FIRMWARE_DIR}/output/images/autoupdate-kernel.img" ]; then
|
||||
cp -a ${FIRMWARE_DIR}/output/images/autoupdate* ${BUILDER_DIR}/archive/${DEVICE}/${TIMESTAMP}
|
||||
fi
|
||||
|
||||
@@ -80,7 +77,7 @@ copy_to_tftp() {
|
||||
${FIRMWARE_DIR}/output/images/openipc.*.tgz \
|
||||
${TFTP_STORAGE}
|
||||
|
||||
if [ -f "${FIRMWARE_DIR}/output/images/autoupdate-kernel.img" ] ; then
|
||||
if [ -f "${FIRMWARE_DIR}/output/images/autoupdate-kernel.img" ]; then
|
||||
scp -r ${FIRMWARE_DIR}/output/images/autoupdate* ${TFTP_STORAGE}
|
||||
fi
|
||||
}
|
||||
@@ -110,7 +107,7 @@ sleep 3
|
||||
echo_c 33 "\nUpdating Builder"
|
||||
git pull
|
||||
|
||||
rm -rf openipc # Weed work with this command
|
||||
rm -rf openipc
|
||||
if [ ! -d "$FIRMWARE_DIR" ]; then
|
||||
echo_c 33 "\nDownloading Firmware"
|
||||
git clone --depth=1 https://github.com/OpenIPC/firmware.git "$FIRMWARE_DIR"
|
||||
@@ -126,9 +123,8 @@ echo_c 33 "\nCopying device files"
|
||||
cp -afv ${BUILDER_DIR}/devices/${DEVICE}/* ${FIRMWARE_DIR}
|
||||
|
||||
echo_c 33 "\nBuilding the device"
|
||||
make BOARD=${DEVICE} all
|
||||
make BOARD=${DEVICE}
|
||||
|
||||
copy_to_archive
|
||||
# copy_to_tftp
|
||||
echo_c 35 "\nDone"
|
||||
cd "$BUILDER_DIR"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
config BR2_PACKAGE_SIGMASTAR_OSDRV_INFINITY6E
|
||||
bool "sigmastar-osdrv-infinity6e"
|
||||
help
|
||||
Sigmastar infinity6e kernel modules
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
#
|
||||
# sigmastar-osdrv-infinity6e
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SIGMASTAR_OSDRV_INFINITY6E_VERSION =
|
||||
SIGMASTAR_OSDRV_INFINITY6E_SITE =
|
||||
SIGMASTAR_OSDRV_INFINITY6E_LICENSE = MIT
|
||||
SIGMASTAR_OSDRV_INFINITY6E_LICENSE_FILES = LICENSE
|
||||
|
||||
define SIGMASTAR_OSDRV_INFINITY6E_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/lib/modules/4.9.84/sigmastar
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/4.9.84/sigmastar $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/kmod/*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/lib/modules/4.9.84/sigmastar/sensor
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/lib/modules/4.9.84/sigmastar/sensor $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/sensor/kmod/*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/firmware
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/firmware $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/sensor/firmware/*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/sensors
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/etc/sensors $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/sensor/configs/*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/lib
|
||||
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/lib $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/lib/*
|
||||
|
||||
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
|
||||
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(SIGMASTAR_OSDRV_INFINITY6E_PKGDIR)/files/script/*
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user