Uploading custom firmware on a Pixhawk

Hi,
I want to upload a custom firmware, essentially with an edit to the AP_HAL, so a slight edit in the code that I got on github. I wanted to know how can I flash that code on the pixhawk using Mission Planner?

You do not need mission planner . Just do

./waf copter --upload

Hi,I want to perform the same work as @tn2307 . I changed one parameter “SCALED_PRESSURE” to “MY_DATA” in ap_message.h, GCS_common.cpp and common.xml.
I downloaded the firmware from github. But now I don’t know how to continue?
I want to flash this new firmware to my pixhawk