Skip to content

Commit

Permalink
[infra] Update cpuinfo package (Samsung#4580)
Browse files Browse the repository at this point in the history
Download patched upstream cpuinfo source

Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Oct 14, 2020
1 parent b057a50 commit 4dd6618
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 140 deletions.
12 changes: 2 additions & 10 deletions infra/cmake/packages/CpuInfoSourceConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,12 @@ function(_CpuInfoSource_import)
nnas_include(OptionTools)

envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
envoption(CPUINFO_URL ${EXTERNAL_DOWNLOAD_SERVER}/pytorch/cpuinfo/archive/5cefcd6293e6881754c2c53f99e95b159d2d8aa5.tar.gz)
# CPUINFO commit including patch from tflite v2.3
envoption(CPUINFO_URL ${EXTERNAL_DOWNLOAD_SERVER}/pytorch/cpuinfo/archive/63b254577ed77a8004a9be6ac707f3dccc4e1fd9.tar.gz)
ExternalSource_Download(CPUINFO
DIRNAME CPUINFO
URL ${CPUINFO_URL})

# Applying patch to cpuinfo (This patch comes from tflite v2.3)
execute_process(
COMMAND patch -p1 --forward --ignore-whitespace
WORKING_DIRECTORY ${CPUINFO_SOURCE_DIR}
INPUT_FILE "${CMAKE_CURRENT_LIST_DIR}/CpuInfo/cpuinfo.patch"
OUTPUT_VARIABLE OUTPUT
RESULT_VARIABLE RESULT
)

set(CpuInfoSource_DIR ${CPUINFO_SOURCE_DIR} PARENT_SCOPE)
set(CpuInfoSource_FOUND TRUE PARENT_SCOPE)
endfunction(_CpuInfoSource_import)
Expand Down
130 changes: 0 additions & 130 deletions infra/nnfw/cmake/packages/CpuInfo/cpuinfo.patch

This file was deleted.

Binary file modified packaging/cpuinfo.tar.gz
Binary file not shown.

0 comments on commit 4dd6618

Please sign in to comment.