Skip to content

Commit

Permalink
Merge pull request #19 from paresh-bhagat12/jailhouse
Browse files Browse the repository at this point in the history
Fix jailhouse makefile for am62 and am62p
  • Loading branch information
cshilwant authored Dec 14, 2023
2 parents b36092f + e88bd31 commit 9878347
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configs/platforms/am62pxx-evm-rt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ TI_LINUX_FIRMWARE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)
UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl31.bin
UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl32.bin
LINUXEXTRASKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-jailhouse

# Add configs for ti-img-rogue-driver
PVR_BUILD_DIR=am62p_linux
Expand Down
2 changes: 1 addition & 1 deletion configs/platforms/am62pxx-evm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TI_LINUX_FIRMWARE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)
UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl31.bin
UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl32.bin
LINUXEXTRASKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-jailhouse

# Add configs for ti-img-rogue-driver
PVR_BUILD_DIR=am62p_linux
Expand Down
2 changes: 1 addition & 1 deletion configs/platforms/am62xx-evm-rt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TI_LINUX_FIRMWARE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)
UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl31.bin
UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl32.bin
LINUXEXTRASKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-jailhouse

# Add configs for ti-img-rogue-driver
PVR_BUILD_DIR=am62_linux
Expand Down
2 changes: 1 addition & 1 deletion configs/platforms/am62xx-evm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TI_LINUX_FIRMWARE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)
UBOOT_ATF=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl31.bin
UBOOT_TEE=$(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/bl32.bin
LINUXEXTRASKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-*
UBOOTEXTRAS_SRC_DIR=$(TI_SDK_PATH)/board-support/u-boot-extras-jailhouse

# Add configs for ti-img-rogue-driver
PVR_BUILD_DIR=am62_linux
Expand Down
6 changes: 3 additions & 3 deletions makerules/Makefile_jailhouse
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jailhouse: linux-extras jailhouse_config
@echo =====================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
make ARCH=$(ARCH) KDIR=${LINUXEXTRASKERNEL_INSTALL_DIR}
make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) CC="$(CC)" KDIR=${LINUXEXTRASKERNEL_INSTALL_DIR}

jailhouse_clean:
@echo =====================================
@echo Cleaning jailhouse
@echo =====================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
make ARCH=$(ARCH) KDIR=${LINUXEXTRASKERNEL_INSTALL_DIR} clean
make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) CC="$(CC)" KDIR=${LINUXEXTRASKERNEL_INSTALL_DIR} clean

jailhouse_distclean: jailhouse_clean
@echo =====================================
Expand All @@ -37,4 +37,4 @@ jailhouse_install:
@echo ================================
@cd board-support/extra-drivers; \
cd `find . -maxdepth 1 -name "jailhouse*" -type d`; \
make ARCH=$(ARCH) KDIR=${LINUXEXTRASKERNEL_INSTALL_DIR} DESTDIR=$(DESTDIR) INSTALL_MOD_STRIP=$(INSTALL_MOD_STRIP) prefix=/usr install
make ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) CC="$(CC)" KDIR=${LINUXEXTRASKERNEL_INSTALL_DIR} DESTDIR=$(DESTDIR) INSTALL_MOD_STRIP=$(INSTALL_MOD_STRIP) prefix=/usr install
2 changes: 1 addition & 1 deletion makerules/Makefile_linux-extras
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ linux-extras: linux-extras-dtbs u-boot-extras
$(MAKE) -j $(MAKE_JOBS) -C $(LINUXEXTRASKERNEL_INSTALL_DIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
# Build FitImage
cd $(LINUXEXTRASKERNEL_INSTALL_DIR) ; cp arch/arm64/boot/Image.gz ./linux.bin ; cd ..
cp $(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)/fitImage-its-$(PLATFORM) $(LINUXEXTRASKERNEL_INSTALL_DIR)
cp $(TI_SDK_PATH)/board-support/prebuilt-images/$(PLATFORM)-jailhouse/fitImage-its-$(PLATFORM) $(LINUXEXTRASKERNEL_INSTALL_DIR)
mkimage -r -f $(LINUXEXTRASKERNEL_INSTALL_DIR)/fitImage-its-$(PLATFORM) -k $(UBOOTEXTRAS_SRC_DIR)/board/ti/keys -K $(TI_SDK_PATH)/board-support/u-boot-extras-build/$(MKIMAGE_DTB_FILE) $(TI_SDK_PATH)/board-support/built-images/fitImage
# Rebuild uboot a53 for FitImage
$(MAKE) -j $(MAKE_JOBS) -C $(UBOOTEXTRAS_SRC_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) CC="$(CC)" \
Expand Down

0 comments on commit 9878347

Please sign in to comment.