Skip to content

Commit

Permalink
amami: use generic extract utils
Browse files Browse the repository at this point in the history
Change-Id: I8b4ec48b384c9d561af4308a728a51426220af3e
  • Loading branch information
HazouPH committed Aug 10, 2017
1 parent 7e45b82 commit 22ef68f
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 9 deletions.
30 changes: 21 additions & 9 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
#!/bin/bash
#
# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Use tradition sort
export LC_ALL=C
set -e

FP=$(cd ${0%/*} && pwd -P)
export VENDOR=$(basename $(dirname $FP))
export DEVICE=$(basename $FP)
export BOARDCONFIGVENDOR=true
export DEVICE=amami
export DEVICE_COMMON=rhine-common
export PLATFORM_COMMON=msm8974-common
export VENDOR=sony

../common/extract-files.sh $@

../common/setup-makefiles.sh
./../$PLATFORM_COMMON/extract-files.sh $@
25 changes: 25 additions & 0 deletions setup-makefiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
#
# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -e

export DEVICE=amami
export DEVICE_COMMON=rhine-common
export PLATFORM_COMMON=msm8974-common
export VENDOR=sony

./../$PLATFORM_COMMON/setup-makefiles.sh $@

0 comments on commit 22ef68f

Please sign in to comment.