License Makefile, shell scripts, assembly source code, Dockerfile

This commit is contained in:
Jianfeng Jiang 2024-01-03 06:40:54 +00:00 committed by Tate, Hongliang Tian
parent faaa4438d6
commit 0920a084e4
13 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
# Make varaiables and defaults, you should refer to aster-runner for more details
AUTO_TEST ?= none
BOOT_METHOD ?= qemu-grub

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MPL-2.0 */
// The boot header, initial boot setup code, temporary GDT and page tables are
// in the boot section. The boot section is mapped writable since kernel may
// modify the initial page table.

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MPL-2.0 */
.text
.global context_switch
.code64

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MPL-2.0 */
.section ".setup", "ax"
.code64
// start_of_setup32 should be loaded at CODE32_START, which is our base.

View File

@ -1,3 +1,5 @@
/* SPDX-License-Identifier: MPL-2.0 */
// 32-bit setup code starts here, and will be loaded at CODE32_START.
.section ".setup", "ax"
.code32

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))
BUILD_DIR := $(CUR_DIR)/build

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
MAKEFLAGS += --no-builtin-rules # Prevent the implicit rules from compiling ".c" or ".s" files automatically.
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CUR_DIR := $(patsubst %/,%,$(dir $(MKFILE_PATH)))

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
MAIN_MAKEFILE := $(firstword $(MAKEFILE_LIST))
INCLUDE_MAKEFILE := $(lastword $(MAKEFILE_LIST))
CUR_DIR := $(shell dirname $(realpath $(MAIN_MAKEFILE)))

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
TESTS ?= chmod_test fsync_test getdents_test link_test lseek_test mkdir_test \
open_create_test open_test pty_test read_test rename_test stat_test \
statfs_test symlink_test sync_test uidgid_test unlink_test \

View File

@ -1,5 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
SCRIPT_DIR=$(dirname "$0")
TEST_TMP_DIR=${SYSCALL_TEST_DIR:-/tmp}
TEST_BIN_DIR=$SCRIPT_DIR/tests

View File

@ -1,5 +1,7 @@
#!/bin/bash
# SPDX-License-Identifier: MPL-2.0
# This script is used to update Asterinas version numbers in all relevant files in the repository.
# Usage: ./tools/bump_version.sh <new_version>

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
FROM ubuntu:22.04 as build-base
SHELL ["/bin/bash", "-c"]

View File

@ -1,5 +1,7 @@
#!/bin/bash
# SPDX-License-Identifier: MPL-2.0
set -e
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )