From 54f3cdf0fec3640e1527d6f80914a86aa5dfcbea Mon Sep 17 00:00:00 2001 From: Zachery Wu Date: Thu, 5 Aug 2021 15:46:05 +0800 Subject: [PATCH] fix OAT problem Signed-off-by: Zachery Wu --- BUILD.gn | 15 ++++- OAT.xml | 66 +++++++++++++++++++ build.sh | 18 ----- .../prebuilts/usr/include/asm-arm/asm/Kbuild | 24 ------- .../asm-arm/uapi/asm/.unistd-common.h.cmd | 1 - .../asm-arm/uapi/asm/.unistd-eabi.h.cmd | 1 - .../asm-arm/uapi/asm/.unistd-oabi.h.cmd | 1 - 7 files changed, 79 insertions(+), 47 deletions(-) create mode 100644 OAT.xml delete mode 100755 build.sh delete mode 100644 linux-4.19/prebuilts/usr/include/asm-arm/asm/Kbuild delete mode 100644 linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd delete mode 100644 linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd delete mode 100644 linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd diff --git a/BUILD.gn b/BUILD.gn index f5aad13..617afc7 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1,5 +1,16 @@ -# Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved. - +# Copyright (c) 2021 Huawei Device Co., Ltd. +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . import("//build/lite/config/component/lite_component.gni") build_ext_component("linux_kernel") { diff --git a/OAT.xml b/OAT.xml new file mode 100644 index 0000000..ccc220b --- /dev/null +++ b/OAT.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + diff --git a/build.sh b/build.sh deleted file mode 100755 index 0cf4579..0000000 --- a/build.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -export TARGET_PRODUCT=hi3516dv300 -export OHOS_ROOT_PATH=$(pwd)/../../.. -export OUTDIR=$1 - -LINUX_KERNEL_OUT=${OHOS_ROOT_PATH}/out/kernel/src_tmp/linux-4.19 -LINUX_KERNEL_OUT_DIR=${OHOS_ROOT_PATH}/out/kernel -HISPARK_TAS_SDK_LINUX_PATH=${OHOS_ROOT_PATH}/device/hisilicon/hispark_taurus/sdk_linux -HISPARK_TAS_SDK_LINUX_MPP_PATH=${HISPARK_TAS_SDK_LINUX_PATH}/soc/src/mpp - -make -f kernel.mk -cp -rf $LINUX_KERNEL_OUT/arch/arm/boot/uImage $OUTDIR/uImage_hi3516dv300_smp - -pushd ${HISPARK_TAS_SDK_LINUX_MPP_PATH}; make -f sdk.mk; popd -rm -rf $LINUX_KERNEL_OUT_DIR diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/asm/Kbuild b/linux-4.19/prebuilts/usr/include/asm-arm/asm/Kbuild deleted file mode 100644 index 4d1cc18..0000000 --- a/linux-4.19/prebuilts/usr/include/asm-arm/asm/Kbuild +++ /dev/null @@ -1,24 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -# UAPI Header export list -include include/uapi/asm-generic/Kbuild.asm - -generated-y += unistd-common.h -generated-y += unistd-oabi.h -generated-y += unistd-eabi.h - -generic-y += bitsperlong.h -generic-y += bpf_perf_event.h -generic-y += errno.h -generic-y += ioctl.h -generic-y += ipcbuf.h -generic-y += msgbuf.h -generic-y += param.h -generic-y += poll.h -generic-y += resource.h -generic-y += sembuf.h -generic-y += shmbuf.h -generic-y += siginfo.h -generic-y += socket.h -generic-y += sockios.h -generic-y += termbits.h -generic-y += termios.h diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd b/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd deleted file mode 100644 index 9c56be7..0000000 --- a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-common.h.cmd +++ /dev/null @@ -1 +0,0 @@ -cmd_arch/arm/include/generated/uapi/asm/unistd-common.h := /bin/sh './arch/arm/tools/syscallhdr.sh' 'arch/arm/tools/syscall.tbl' 'arch/arm/include/generated/uapi/asm/unistd-common.h' 'common' '' '__NR_SYSCALL_BASE' diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd b/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd deleted file mode 100644 index ee977dc..0000000 --- a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-eabi.h.cmd +++ /dev/null @@ -1 +0,0 @@ -cmd_arch/arm/include/generated/uapi/asm/unistd-eabi.h := /bin/sh './arch/arm/tools/syscallhdr.sh' 'arch/arm/tools/syscall.tbl' 'arch/arm/include/generated/uapi/asm/unistd-eabi.h' 'eabi' '' '__NR_SYSCALL_BASE' diff --git a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd b/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd deleted file mode 100644 index e523de5..0000000 --- a/linux-4.19/prebuilts/usr/include/asm-arm/uapi/asm/.unistd-oabi.h.cmd +++ /dev/null @@ -1 +0,0 @@ -cmd_arch/arm/include/generated/uapi/asm/unistd-oabi.h := /bin/sh './arch/arm/tools/syscallhdr.sh' 'arch/arm/tools/syscall.tbl' 'arch/arm/include/generated/uapi/asm/unistd-oabi.h' 'oabi' '' '__NR_SYSCALL_BASE' -- Gitee