Ver a proveniência

Fix PYTHONPATH and install cmake via PIP.

tags/v4.1.0-rc1
Luigi Cruz há 4 anos
ascendente
cometimento
ec5ca77a32
6 ficheiros alterados com 15 adições e 22 eliminações
  1. +1
    -14
      builder/stage4/04-pisdr-system/03-run.sh
  2. +8
    -0
      builder/stage4/04-pisdr-system/04-run.sh
  3. +4
    -0
      builder/stage4/04-pisdr-system/patch/export.txt
  4. +0
    -6
      builder/stage4/04-pisdr-system/patch/ninja.patch
  5. +1
    -1
      builder/stage4/05-pisdr-uhd/00-run.sh
  6. +1
    -1
      builder/stage4/06-pisdr-gnuradio/00-run.sh

+ 1
- 14
builder/stage4/04-pisdr-system/03-run.sh Ver ficheiro

@@ -1,18 +1,5 @@
#!/bin/bash -e

install -m 755 patch/ninja.patch "${ROOTFS_DIR}/etc/"

on_chroot << EOF
cd "/tmp"

if [ ! -d "ninja" ]; then
git clone https://github.com/ninja-build/ninja.git
cd ninja
patch -u CMakeLists.txt -i /etc/ninja.patch
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j$(nproc) install
ldconfig
fi
pip3 install cmake ninja
EOF

+ 8
- 0
builder/stage4/04-pisdr-system/04-run.sh Ver ficheiro

@@ -0,0 +1,8 @@
#!/bin/bash -e

install -m 755 patch/export.txt "${ROOTFS_DIR}/etc/"

on_chroot << EOF
cat /etc/export.txt >> /home/${FIRST_USER_NAME}/.bashrc
source /home/${FIRST_USER_NAME}/.bashrc
EOF

+ 4
- 0
builder/stage4/04-pisdr-system/patch/export.txt Ver ficheiro

@@ -0,0 +1,4 @@

## PiSDR Variables
export PYTHONPATH="/usr/local/lib/python3/dist-packages:$PYTHONPATH"
export PATH="$HOME/.local/bin:$PATH"

+ 0
- 6
builder/stage4/04-pisdr-system/patch/ninja.patch Ver ficheiro

@@ -1,6 +0,0 @@
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.15)
+cmake_minimum_required(VERSION 3.13)
project(ninja)

# --- optional link-time optimization

+ 1
- 1
builder/stage4/05-pisdr-uhd/00-run.sh Ver ficheiro

@@ -15,7 +15,7 @@ cd build
cmake -DCMAKE_CXX_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -Wno-psabi" \
-DCMAKE_C_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15 -Wno-psabi" \
-DCMAKE_ASM_FLAGS:STRING="-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a15" \
-GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ../
-GNinja -DCMAKE_BUILD_TYPE=Release ../
ninja install
cp /usr/lib/uhd/utils/uhd-usrp.rules /etc/udev/rules.d/
udevadm control --reload-rules


+ 1
- 1
builder/stage4/06-pisdr-gnuradio/00-run.sh Ver ficheiro

@@ -13,7 +13,7 @@ git checkout maint-3.8
git submodule update --init --recursive
mkdir -p build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
cmake -GNinja -DCMAKE_BUILD_TYPE=Release ..
ninja install
ldconfig
EOF

Carregando…
Cancelar
Guardar