diff --git a/.ostc-ci/gitlab-ci.yml b/.ostc-ci/gitlab-ci.yml
index b032419c815ee71e9bbe912e87da791dbd0ee4aa..571a17c26589c1c33b50637bc41bf751fd9c6d36 100644
--- a/.ostc-ci/gitlab-ci.yml
+++ b/.ostc-ci/gitlab-ci.yml
@@ -127,10 +127,6 @@ reuse:
     # devtool and other related tools.
     # xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 
-    # Accept NXP license only for building targets that require proprietary
-    # resources to boot.
-    - test "$ACCEPT_FSL_EULA" -eq 1 && echo 'ACCEPT_FSL_EULA = "1"' >> conf/local.conf 
-
   after_script:
     # If the primary script failed early enough, the scratch dir may not have
     # been created yet. Check for that to avoid confusing errors.
@@ -184,7 +180,6 @@ reuse:
     OHOS_BUILD_FLAVOUR: "linux"
     OHOS_RECIPE_NAME: "openharmony-image-base-tests"
     OHOS_GIT_REPO_PATH: "meta-ohos"
-    ACCEPT_FSL_EULA: 0
 
 "Qemu x86-64 (Linux)":
   extends: .build-linux
@@ -200,7 +195,13 @@ reuse:
   extends: .build-linux
   variables:
     MACHINE: seco-imx8mm-c61
-    ACCEPT_FSL_EULA: 1
+  script:
+    - *workspace-do
+    # Accept NXP license only for building targets that require proprietary
+    # resources to boot.
+    - echo 'ACCEPT_FSL_EULA = "1"' >> "$SCRATCH_DIR"/workspace/build/conf/local.conf
+    # Build the desired recipe.
+    - time bitbake "$OHOS_RECIPE_NAME"
 
 "96Boards Avenger96 (Linux)":
   extends: .build-linux