Prebuild Command line(Copy)

本文介绍了一个用于在不同目录间批量复制文件的批处理脚本示例。该脚本使用XCOPY命令根据配置条件(如Debug或Release)将指定目录下的文件复制到目标目录,并考虑了多种复制选项以确保文件被正确更新。

xcopy $(SolutionDir)\PreBuild\Share $(SolutionDir)\Debug\ /s /e /c /y
xcopy $(SolutionDir)\PreBuild\Debug $(SolutionDir)\Debug\ /s /e /c /y


xcopy $(SolutionDir)\PreBuild\Release $(SolutionDir)\Release\ /s /e /c /y
xcopy $(SolutionDir)\PreBuild\Share $(SolutionDir)\Release\ /s /e /c /y

if $(ConfigurationName) == Debug goto :debug
:release
xcopy $(SolutionDir)\PreBuild\Share $(SolutionDir)\Release\ /s /e /c /y
xcopy $(SolutionDir)\PreBuild\Release $(SolutionDir)\Release\ /s /e /c /y
goto :exit

:debug
xcopy $(SolutionDir)\PreBuild\Share $(SolutionDir)\Debug\ /s /e /c /y
xcopy $(SolutionDir)\PreBuild\Debug $(SolutionDir)\Debug\ /s /e /c /y
:exit

device/rockchip/common/prebuild.mk:2: warning: Generating manifest snapshot at out/commit_id.xml... device/rockchip/common/prebuild.mk:3: warning: You can disable this by removing this and setting BOARD_RECORD_COMMIT_ID := false in BoardConfig.mk Traceback (most recent call last): File "/home/8T-3/EBook/android11_ebook/.repo/repo/main.py", line 531, in <module> _Main(sys.argv[1:]) File "/home/8T-3/EBook/android11_ebook/.repo/repo/main.py", line 507, in _Main result = repo._Run(argv) or 0 File "/home/8T-3/EBook/android11_ebook/.repo/repo/main.py", line 180, in _Run result = cmd.Execute(copts, cargs) File "/home/8T-3/EBook/android11_ebook/.repo/repo/subcmds/manifest.py", line 80, in Execute self._Output(opt) File "/home/8T-3/EBook/android11_ebook/.repo/repo/subcmds/manifest.py", line 70, in _Output peg_rev_upstream = opt.peg_rev_upstream) File "/home/8T-3/EBook/android11_ebook/.repo/repo/manifest_xml.py", line 327, in Save output_projects(None, root, list(sorted(projects))) File "/home/8T-3/EBook/android11_ebook/.repo/repo/manifest_xml.py", line 241, in output_projects output_project(parent, parent_node, project) File "/home/8T-3/EBook/android11_ebook/.repo/repo/manifest_xml.py", line 268, in output_project value = p.work_git.rev_parse(HEAD + '^0') File "/home/8T-3/EBook/android11_ebook/.repo/repo/project.py", line 2747, in runner (self._project.name, name, p.stderr)) error.GitError: rk/hardware/rk35/einkhwc rev-parse: fatal: ambiguous argument 'HEAD^0': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'
11-04
root@6bd7645dca4a:/data/test_be670_docker_18/Iplatform/build# make PRODUCT_NAME=be670v1 sdk openssl support zlib prep bcm6765 flash env cp -f /data/test_be670_docker_18/Iplatform/build/product_configs/be670v1/env_NAND_2M_6765SV.conf /data/test_be670_docker_18/Iplatform/build/../../bcm504L04/bcm963xx_5.04L.04/bootloaders/build/configs/ cp -f /data/test_be670_docker_18/Iplatform/build/product_configs/be670v1/options_6765_nand.conf /data/test_be670_docker_18/Iplatform/build/../../bcm504L04/bcm963xx_5.04L.04/bootloaders/build/configs/ cp -f /data/test_be670_docker_18/Iplatform/build/product_configs/be670v1/bcm96765_defconfig /data/test_be670_docker_18/Iplatform/build/../../bcm504L04/bcm963xx_5.04L.04/bootloaders/u-boot-2019.07/configs/ Check & pull wlan driver Normal clone Check & pull wlan driver cd /data/test_be670_docker_18/Iplatform/build/../../bcm504L04/bcm963xx_5.04L.04 && /data/test_be670_docker_18/Iplatform/build/../utils/gitPrivateClone/gitlab-private-clone wifi-driver/brcm/be_17.x ssh://gerrit.cp.tp-link.com:29418/wifi-driver/brcm/be_17.x.git 23.2.1_develop "" bcmdrivers/broadcom/net/wl Found "bcmdrivers/broadcom/net/wl", do nothing! Find wl dongle config file, copying... copy bsd copy powerfile #@rm -rf /data/test_be670_docker_18/Iplatform/build/../../bcm504L04/bcm963xx_5.04L.04/.last_profile make -C /data/test_be670_docker_18/Iplatform/build/../../bcm504L04/bcm963xx_5.04L.04 SHELL=/bin/bash PROFILE=TP6765 IPLATFORM_ROOTFS=/data/test_be670_docker_18/Iplatform/build/../image/be670v1/rootfs make[1]: Entering directory '/data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04' make -f build/Makefile -j2 IPLATFORM_ROOTFS=/data/test_be670_docker_18/Iplatform/build/../image/be670v1/rootfs PROFILE=TP6765 SHELL=/bin/bash PRODUCT_NAME=be670v1 make[2]: Entering directory '/data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04' MAKELEVEL='2' MAKEFLAGS='w' MAKECMDGOALS='' MAKEOVERRIDES='${-*-command-variables-*-}' MAKEFILE_LIST=' build/Makefile' MY_DEFAULT_ANY_FIRST_RUN='' MY_MKENV_FIRST_RECURSION='' IMAGE GOAL is profile_defined_check: PROFILE=TP6765 ############### parallel build environment start ################ SKIPPING ALTSDK OPENWRT ATOM PREBUILD! brcm_max_jobs: actual_max_jobs: 2 hostname: 6bd7645dca4a uname: Linux 6bd7645dca4a 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux processors: 2 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 1721 124 30 1317 0 0 668 1533 504 451 15 4 79 2 0 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 2 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 183 Model name: 13th Gen Intel(R) Core(TM) i7-13700 Stepping: 1 CPU MHz: 2111.998 BogoMIPS: 4223.99 Hypervisor vendor: VMware Virtualization type: full L1d cache: 48K L1i cache: 32K L2 cache: 2048K L3 cache: 30720K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves arat umip gfni vaes vpclmulqdq rdpid md_clear flush_l1d arch_capabilities Your environment variables take up 15955 bytes POSIX upper limit on argument length (this system): 2079149 POSIX smallest allowable upper limit on argument length (all systems): 4096 Maximum length of command we could actually use: 2063194 Size of command buffer we are actually using: 131072 Maximum parallelism (--max-procs must be no greater): 2147483647 ################ parallel build environment end ################## make -f build/prebuild_checks.mk default make[3]: Entering directory '/data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04' shell is /bin/bash. Bash version is 4.4.20(1)-release BCM_MODULAR_BUILD = BUILD_DIR = /data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04 EXT_BUILD_DIR = /data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04 EXT_DEVICEFS_DIR = /data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04/targets/TP6765/fs.install *************************************************** ERROR: Attempting to build as root. *************************************************** build/prebuild_checks.mk:32: recipe for target 'prebuild_checks' failed make[3]: *** [prebuild_checks] Error 1 make[3]: Leaving directory '/data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04' build/Makefile:77: recipe for target 'prebuild_checks' failed make[2]: *** [prebuild_checks] Error 2 make[2]: Leaving directory '/data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04' Makefile:18: recipe for target 'default' failed make[1]: *** [default] Error 2 make[1]: Leaving directory '/data/test_be670_docker_18/bcm504L04/bcm963xx_5.04L.04' /data/test_be670_docker_18/Iplatform/build/product_configs/be670v1/product.mk:386: recipe for target 'sdk_all' failed make: *** [sdk_all] Error 2
最新发布
11-08
安装 报错npm WARN deprecated npmlog@4.1.2: This package is no longer supported. npm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported. npm WARN deprecated gauge@2.7.4: This package is no longer supported. npm ERR! code 1 npm ERR! path /Users/yangjia/workspace/company/dkYun/SDK2.0/node_modules/microtime npm ERR! command failed npm ERR! command sh -c prebuild-install || node-gyp rebuild npm ERR! CXX(target) Release/obj.target/microtime/src/microtime.o npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@8.4.1 npm ERR! gyp info using node@16.14.0 | darwin | arm64 npm ERR! gyp info find Python using Python version 3.12.1 found at "/Library/Frameworks/Python.framework/Versions/3.12/bin/python3" npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/yangjia/workspace/company/dkYun/SDK2.0/node_modules/microtime/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/yangjia/Library/Caches/node-gyp/16.14.0', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/yangjia/Library/Caches/node-gyp/16.14.0/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/yangjia/workspace/company/dkYun/SDK2.0/node_modules/microtime', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:222: npm ERR! In file included from ../../nan/nan_converters.h:67: npm ERR! ../../nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *' npm ERR! X(Boolean) npm ERR! ^~~~~~~~~~ npm ERR! ../../nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X' npm ERR! val->To ## TYPE(isolate->GetCurrentContext()) \ npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:3086:37: note: passing argument to parameter 'isolate' here npm ERR! Local<Boolean> ToBoolean(Isolate* isolate) const; npm ERR! ^ npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:222: npm ERR! In file included from ../../nan/nan_converters.h:67: npm ERR! ../../nan/nan_converters_43_inl.h:22:1: error: no member named 'FromMaybe' in 'v8::Local<v8::Boolean>' npm ERR! X(Boolean) npm ERR! ^~~~~~~~~~ npm ERR! ../../nan/nan_converters_43_inl.h:19:12: note: expanded from macro 'X' npm ERR! .FromMaybe(v8::Local<v8::TYPE>())); \ npm ERR! ^ npm ERR! ../../nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *' npm ERR! X(bool, Boolean) npm ERR! ^~~~~~~~~~~~~~~~ npm ERR! ../../nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X' npm ERR! return val->NAME ## Value(isolate->GetCurrentContext()); \ npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:3096:30: note: passing argument to parameter 'isolate' here npm ERR! bool BooleanValue(Isolate* isolate) const; npm ERR! ^ npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:222: npm ERR! In file included from ../../nan/nan_converters.h:67: npm ERR! ../../nan/nan_converters_43_inl.h:40:1: error: no viable conversion from returned value of type 'bool' to function return type 'imp::ToFactory<bool>::return_t' (aka 'Maybe<bool>') npm ERR! X(bool, Boolean) npm ERR! ^~~~~~~~~~~~~~~~ npm ERR! ../../nan/nan_converters_43_inl.h:37:10: note: expanded from macro 'X' npm ERR! return val->NAME ## Value(isolate->GetCurrentContext()); \ npm ERR! ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:10437:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'bool' to 'const v8::Maybe<bool> &' for 1st argument npm ERR! class Maybe { npm ERR! ^ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:10437:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'bool' to 'v8::Maybe<bool> &&' for 1st argument npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:10492:12: note: explicit constructor is not a candidate npm ERR! explicit Maybe(const T& t) : has_value_(true), value_(t) {} npm ERR! ^ npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:223: npm ERR! In file included from ../../nan/nan_new.h:189: npm ERR! ../../nan/nan_implementation_12_inl.h:356:37: error: too few arguments to function call, expected 2, have 1 npm ERR! return v8::StringObject::New(value).As<v8::StringObject>(); npm ERR! ~~~~~~~~~~~~~~~~~~~~~ ^ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:6196:23: note: 'New' declared here npm ERR! static Local<Value> New(Isolate* isolate, Local<String> value); npm ERR! ^ npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:2722: npm ERR! ../../nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>' npm ERR! assert(persistent().IsNearDeath()); npm ERR! ~~~~~~~~~~~~ ^ npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert' npm ERR! (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0) npm ERR! ^ npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:2722: npm ERR! ../../nan/nan_object_wrap.h:127:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>' npm ERR! assert(wrap->handle_.IsNearDeath()); npm ERR! ~~~~~~~~~~~~~ ^ npm ERR! /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert' npm ERR! (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0) npm ERR! ^ npm ERR! In file included from ../src/microtime.cc:9: npm ERR! In file included from ../../nan/nan.h:2818: npm ERR! ../../nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] npm ERR! data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset; npm ERR! ^ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:5614:3: note: 'GetContents' has been explicitly marked deprecated here npm ERR! V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.") npm ERR! ^ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8config.h:454:35: note: expanded from macro 'V8_DEPRECATED' npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]] npm ERR! ^ npm ERR! ../src/microtime.cc:75:10: error: no matching member function for call to 'Set' npm ERR! array->Set(Nan::New<v8::Integer>(0), Nan::New<v8::Number>((double)t.tv_sec)); npm ERR! ~~~~~~~^~~ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^ npm ERR! ../src/microtime.cc:76:10: error: no matching member function for call to 'Set' npm ERR! array->Set(Nan::New<v8::Integer>(1), Nan::New<v8::Number>((double)t.tv_usec)); npm ERR! ~~~~~~~^~~ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, npm ERR! ^ npm ERR! /Users/yangjia/Library/Caches/node-gyp/16.14.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided npm ERR! V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, npm ERR! ^ npm ERR! 1 warning and 9 errors generated. npm ERR! make: *** [Release/obj.target/microtime/src/microtime.o] Error 1 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) npm ERR! gyp ERR! System Darwin 22.6.0 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /Users/yangjia/workspace/company/dkYun/SDK2.0/node_modules/microtime npm ERR! gyp ERR! node -v v16.14.0 npm ERR! gyp ERR! node-gyp -v v8.4.1 npm ERR! gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! /Users/yangjia/.npm/_logs/2025-06-30T06_40_09_765Z-debug-0.log
07-01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值