Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Biktorgj committed Jan 23, 2021
1 parent f684a15 commit 4e41174
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
SHELL := /bin/bash
# Paths - Remember to first run the script "initialize_repositories.sh" to download
# both the ARM toolchain and the source code repositories
# Need to fix all this since I'm moving almost everything to the yocto build tree, why make it twice?
CURRENT_PATH:=$(shell pwd)
APPSBOOT_PATH:=$(CURRENT_PATH)/quectel_lk
YOCTO_PATH:=$(CURRENT_PATH)/yocto
Expand All @@ -14,7 +13,7 @@ $(shell mkdir -p target)
export ARCH=arm

all: help
everything: aboot_signed root_fs recovery_fs packagewldr
everything: aboot root_fs recovery_fs packagewldr

help:
@echo "Welcome to the Pinephone Modem SDK"
Expand Down Expand Up @@ -67,16 +66,6 @@ root_fs:
rm $(YOCTO_PATH)/build/conf/local.conf
mv $(YOCTO_PATH)/build/conf/backup.conf $(YOCTO_PATH)/build/conf/local.conf

root_fs_full:
mv $(YOCTO_PATH)/build/conf/local.conf $(YOCTO_PATH)/build/conf/backup.conf
cp $(CURRENT_PATH)/tools/config/poky/rootfs_full.conf $(YOCTO_PATH)/build/conf/local.conf
cd $(YOCTO_PATH) && source $(YOCTO_PATH)/oe-init-build-env && \
bitbake core-image-minimal && \
cp $(YOCTO_PATH)/build/tmp/deploy/images/mdm9607/core-image-minimal-mdm9607.ubi $(CURRENT_PATH)/target/rootfs-mdm9607.ubi && \
cp $(YOCTO_PATH)/build/tmp/deploy/images/mdm9607/boot-mdm9607.img $(CURRENT_PATH)/target
rm $(YOCTO_PATH)/build/conf/local.conf
mv $(YOCTO_PATH)/build/conf/backup.conf $(YOCTO_PATH)/build/conf/local.conf

recovery_fs:
mv $(YOCTO_PATH)/build/conf/local.conf $(YOCTO_PATH)/build/conf/backup.conf
cp $(CURRENT_PATH)/tools/config/poky/recovery.conf $(YOCTO_PATH)/build/conf/local.conf
Expand Down

0 comments on commit 4e41174

Please sign in to comment.