Skip to content

Commit

Permalink
assignment-4-completed
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoussa1 committed Jan 17, 2025
1 parent 09ddd05 commit e28d1aa
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 7 deletions.
1 change: 1 addition & 0 deletions base_external/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source "$BR2_EXTERNAL_project_base_PATH/package/aesd-assignments/Config.in"
23 changes: 23 additions & 0 deletions base_external/configs/aesd_qemu_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
BR2_aarch64=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
BR2_GLOBAL_PATCH_DIR="board/qemu/patches"
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
BR2_SYSTEM_DHCP="eth0"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.32"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/aarch64-virt/linux.config"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_DROPBEAR=y
BR2_PACKAGE_OPENSSH=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_PACKAGE_HOST_QEMU=y
BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
BR2_PACKAGE_AESD_ASSIGNMENTS=y
2 changes: 2 additions & 0 deletions base_external/external.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: project_base
desc: External configuration for the AESD project
1 change: 1 addition & 0 deletions base_external/external.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include $(sort $(wildcard $(BR2_EXTERNAL_project_base_PATH)/package/*/*.mk))
22 changes: 16 additions & 6 deletions base_external/package/aesd-assignments/aesd-assignments.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,33 @@
##############################################################

#TODO: Fill up the contents below in order to reference your assignment 3 git contents
AESD_ASSIGNMENTS_VERSION = '#COMMIT VERSION NUMBER'
AESD_ASSIGNMENTS_VERSION = 38605b396197efe831fe8de4d86271ba049e1894
# Note: Be sure to reference the *ssh* repository URL here (not https) to work properly
# with ssh keys and the automated build/test system.
# Your site should start with [email protected]:
AESD_ASSIGNMENTS_SITE = '#GITHUB REPOSITORY LINK'
AESD_ASSIGNMENTS_SITE = [email protected]:cu-ecen-aeld/assignments-3-and-later-bmoussa1.git
AESD_ASSIGNMENTS_SITE_METHOD = git
AESD_ASSIGNMENTS_GIT_SUBMODULES = YES

# Use a local source directory for faster rebuilds if specified
ifeq ($$(AESD_ASSIGNMENTS_OVERRIDE_SCRDIR),)
AESD_ASSIGNMENTS_SRCDIR = $(@D)
else
AESD_ASSIGNMENTS_SRCDIR = $$(AESD_ASSIGNMENTS_OVERRIDE_SCRDIR)
endif

define AESD_ASSIGNMENTS_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)/finder-app all
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(AESD_ASSIGNMENTS_SRCDIR)finder-app all
endef

# TODO add your writer, finder and finder-test utilities/scripts to the installation steps below
define AESD_ASSIGNMENTS_INSTALL_TARGET_CMDS
$(INSTALL) -d 0755 $(@D)/conf/ $(TARGET_DIR)/etc/finder-app/conf/
$(INSTALL) -m 0755 $(@D)/conf/* $(TARGET_DIR)/etc/finder-app/conf/
$(INSTALL) -m 0755 $(@D)/assignment-autotest/test/assignment4/* $(TARGET_DIR)/bin
$(INSTALL) -d 0755 $(AESD_ASSIGNMENTS_SRCDIR)/conf/ $(TARGET_DIR)/etc/finder-app/conf/
$(INSTALL) -m 0755 $(AESD_ASSIGNMENTS_SRCDIR)/conf/* $(TARGET_DIR)/etc/finder-app/conf/
$(INSTALL) -m 0755 $(AESD_ASSIGNMENTS_SRCDIR)/assignment-autotest/test/assignment4/* $(TARGET_DIR)/bin
$(INSTALL) -m 0755 $(AESD_ASSIGNMENTS_SRCDIR)finder-app/finder-test.sh $(TARGET_DIR)/usr/bin/
$(INSTALL) -m 0755 $(AESD_ASSIGNMENTS_SRCDIR)finder-app/finder.sh $(TARGET_DIR)/usr/bin/
$(INSTALL) -m 0755 $(AESD_ASSIGNMENTS_SRCDIR)finder-app/writer $(TARGET_DIR)/usr/bin/
endef

$(eval $(generic-package))
2 changes: 2 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
make -C buildroot distclean
2 changes: 1 addition & 1 deletion shared.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ MODIFIED_QEMU_DEFCONFIG=base_external/configs/aesd_qemu_defconfig
# The defconfig from the buildroot directory we use for the project
AESD_DEFAULT_DEFCONFIG=${QEMU_DEFCONFIG}
AESD_MODIFIED_DEFCONFIG=${MODIFIED_QEMU_DEFCONFIG}
AESD_MODIFIED_DEFCONFIG_REL_BUILDROOT=../${AESD_MODIFIED_DEFCONFIG}
AESD_MODIFIED_DEFCONFIG_REL_BUILDROOT=$(realpath ${AESD_MODIFIED_DEFCONFIG})

0 comments on commit e28d1aa

Please sign in to comment.