pushd $(SOM528_DIR)/mpp/obj;$(MAKE);popd #$(MAKE) -C $(SOM528_DIR)/mpp/obj default $(MAKE) -C $(SOM528_DIR)/mpp/drv/interdrv all $(MAKE) -C $(SOM528_DIR)/mpp/drv/vendor all pushd $(SOM528_DIR)/mpp/component/pciv;$(MAKE);popd pushd $(SOM528_DIR)/mpp/component/gfbg;$(MAKE);popd $(MAKE) -C $(SOM528_DIR)/mpp/sample all什么意思
时间: 2023-12-17 22:02:27 浏览: 86
这是一段Makefile语句,用于编译SOM528板卡的多媒体处理程序。具体来说,它执行以下操作:
1. 进入目录$(SOM528_DIR)/mpp/obj并执行make命令,编译默认目标。
2. 进入目录$(SOM528_DIR)/mpp/drv/interdrv并执行make命令,编译所有目标。
3. 进入目录$(SOM528_DIR)/mpp/drv/vendor并执行make命令,编译所有目标。
4. 进入目录$(SOM528_DIR)/mpp/component/pciv并执行make命令,编译所有目标。
5. 进入目录$(SOM528_DIR)/mpp/component/gfbg并执行make命令,编译所有目标。
6. 执行$(MAKE) -C $(SOM528_DIR)/mpp/sample all,编译所有示例程序。
其中,pushd和popd命令用于进入和退出目录,$()用于引用变量。
相关问题
#!/bin/bash #bash -x ./build_package.sh -a aarch64 -w `pud` -i 123abc -v 1,4.0 -r 3 -b /root/packaging_releases/build_root_a3860623d/virtual_rootfs/usr/local/ -l /usr/local -t deb OS=Kylin VERSION= WORK_ROOT= PACKAGE_TYPE=deb BUILD_ID= RELEASE= DISTRO_ID=`cat /etc/*-release | grep ^ID= | awk -F'=' '{print $2}' | sed '/\"//g'` DISTRO _VERSION_ID=`cat /etc/*-release | grep ^VERSION_ID= | awk -F'=' '{print $2}' | sed "s/\"//g'` usage() { echo "Usage:" echo "build_package.sh " } build_rpm_package() { mkdir -p $BUILD ROOT pushd $BUILD ROOT RPMBUILD=$BUILD_ROOT/rpmbuild_$BUILD_ID rpmbuild --bb --target=$ARCH \ -D "_topdir $RPMBUILD" \ -D "_arch $ARCH" \ -D "current_version $VERSION" \ -D "current_release $RELEASE.$DISTRO_ID$DISTRO_VERSION_ID" \ -D "lib $BIN PATH" \ -D "lib_prefix $_LIB_PREFTX" \ $WORK_ROOT/rpm_package/package.spec cp `find ./ -name *.rpm` $WORK_ROOT; popd exit } build_deb_package() { mkdir -p $BUILD_ROOT pushd $BUILD_ROOT PACKAGE_NAME="sietium-umod-drv_"$VERSION"-"$RELEASE"."$DISTRO_ID$DISTRO_VERSION_ID"_"$ARCH DEBBUILD=$BUILD_ROOT/debbuild_$BUILD_ID mkdir -p $DEBBUILD/$_LIB_PREFIX sed-i "s/Version:/Version:$VERSION-$RELEASE/g" $WORK_ROOT/deb_package/DEBIAN/control sed -i "s/Architecture:/Architecture:$ARCH/g"$WORK_ROOT/deb_package/DEBIAN/control rsync -rat $WORK_ROOT/deb_package/DEBIAN $DEBBUILD rsync -rat $BIN_PATH $DEBBUILD/$_LIB_PREFIX pushd $DEBBUILD mv ./DEBIAN ./debian mv usr/local/sietium/lib64/pkgconfig . dpkg-shlibdeps usr/local/sietium/lib64/* mv ./pkgconfig usr/local/sietium/lib64/ DEPS=`cat debian/substvars | awk -F'shlibs:Depends=' '{print $2}'` sed -i "s/Depends:/Depends:$DEPS/g" debian/control mv ./debian ./DEBIAN popd dpkg-deb--build $DEBBUILD $WORK_ROOT/$PACKAGE_NAME.deb Popd exit } while getopts a:b:d:o:v:w:t:i:h:r:l:c:h: option do case $option in a) ARCH=$OPTARG;; b) BIN_PATH=$OPTARG;; f) CONF_PATH=$OPTARG;; o) OS=$OPTARG;; v) VERSION=$OPTARG;; w)WORK_ROOT=$OPTARG;; t) PACKAGE_TYPE=$OPTARG;; i) BUILD_ID=$OPTARG;; r) RELEASE=$OPTARG;; l) _LIB_PREFIX=$OPTARG;; c)_CONF_PREFIX=$OPTARG;; h) usage;; ?) usage;; esac done echo "build env:" echo " Arch:" $ARCH echo " OS:" $OS echo " Version:" $VERSION echo " RELEASE:" $RELEASE echo " Work dir:" SWORK_ROOT echo " Package type:" $PACKAGE_TYPE BUILD_ROOT=$WORK_ROOT/build _package_$BUILD_ID if [ $PACKAGE_TYPE =='rpm']; then build_rpm_package elif[$PACKAGE_TYPE =='deb']; then build_deb_package else build_rpm_package build_deb_package fi解释脚本意义
这是一个 Bash 脚本,用于构建软件包。它包含了两个函数 `build_rpm_package()` 和 `build_deb_package()`,分别用于构建 RPM 和 DEB 类型的软件包。脚本接受一些参数,如架构 `-a`、二进制文件路径 `-b`、操作系统 `-o`、版本号 `-v`、工作目录 `-w`、软件包类型 `-t`、构建 ID `-i`、发布版本号 `-r`、库路径前缀 `-l` 等等。脚本中使用了一些 Linux 命令,如 `mkdir`、`pushd`、`popd`、`rsync`、`sed`、`awk`、`dpkg-shlibdeps`、`dpkg-deb` 等等,用于创建目录、切换工作目录、复制文件、修改文件内容、生成软件包依赖信息等等。脚本最后根据软件包类型调用相应的构建函数,如果类型不是 RPM 或 DEB,则默认同时构建 RPM 和 DEB。
configuration written to .config # make[2]: Leaving directory '/home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/u-boot-2022.07' pushd /home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/u-boot-2022.07;make LLVM= CROSS_COMPILE=aarch64-v01c01-linux-gnu- 1>/dev/null;popd ~/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/u-boot-2022.07 ~/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot ===================== WARNING ====================== This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal. See doc/develop/driver-model/migration.rst for more info. ==================================================== ===================== WARNING ====================== This board does not use CONFIG_TIMER (Driver Model for Timer drivers). Please update the board to use CONFIG_TIMER before the v2023.01 release. Failure to update by the deadline may result in board removal. See doc/develop/driver-model/migration.rst for more info. ==================================================== ===================== WARNING ====================== This board does not use CONFIG_DM_SERIAL (Driver Model for Serial drivers). Please update the board to use CONFIG_DM_SERIAL before the v2023.04 release. Failure to update by the deadline may result in board removal. See doc/develop/driver-model/migration.rst for more info. ==================================================== ~/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot echo "gzip" gzip make -C /home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/../gzip/ make[2]: Entering directory '/home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot' make[2]: *** /home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/../gzip/: No such file or directory. Stop. make[2]: Leaving directory '/home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot' make[1]: *** [Makefile:51: all] Error 2 make[1]: Leaving directory '/home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot' make: *** [Makefile:287: boot] Error 2什么意思
这段输出是在执行 `make` 命令编译 Hi3519DV500 SDK 中的 `boot` 部分时出现的。具体来说,它包括以下信息:
- `configuration written to .config`:指示配置已写入 `.config` 文件。
- `WARNING`:警告信息,提示当前的板子没有使用 Ethernet、Timer 和 Serial 驱动程序的驱动模型。建议在规定的时间段内更新板子以使用驱动模型,否则可能会导致板子被移除。
- `echo "gzip" gzip`:输出提示消息 "gzip" 并执行 gzip 命令。
- `make[2]: *** /home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/../gzip/: No such file or directory. Stop.`:指示在执行 `make` 命令时,出现了错误,因为找不到 `/home/lkuser/SDK/Hi3519DV500_SDK_V2.0.0.2/mini_sdk/boot/u-boot/../gzip/` 目录或文件。
- `make[1]: *** [Makefile:51: all] Error 2`:指示在第一级 `make` 命令中出现了错误,因为在执行 `make` 命令时,出现了错误。
- `make: *** [Makefile:287: boot] Error 2`:指示在执行 `make` 命令时,出现了错误。
阅读全文